To help demonstrate the features and capabilities of aframe-physics-system
the following collection of examples have been prepared.
Ammo sandbox
Demonstration of many Ammo driver features in a single
example.
Cannon.js sandbox
Demonstration of many Cannon driver features in a single example.
Compound
Construct a compound shape and simulate collision with
a ground plane using the Cannon driver.
Constraints with Ammo
Demonstration of many
Ammo driver constraints including cone
twist, hinge, lock, point to point, and slider constraints.
Constraints with Cannon
Demonstration of many
Cannon driver constraints including cone twist,
hinge, lock, point to point, and distance constraints.
Materials
Bounce simulation with
restitution (bounciness) of 1 using the
Cannon driver.
Spring
Four vertical springs each between two boxes with an
assortment of damping and stiffness values using the Cannon driver.
Stress
Apply strong impulse to a cube when the
user clicks with a mouse using the Cannon driver. Cubes are arranged in four
4x3 walls.
Sweeper
Animate a long wall moving along the z-axis along the initial view direction
using the velocity component and the Cannon driver.
Time to live
Remove a dynamic body from the
scene after 100 frames using the Cannon driver.