Physics

findAndRemovePhysicsBody(obj)

Find the physics body associated with the given object and remove it.
Parameters:
Name Type Description
obj v3d.Object3D Object.

findAndRemovePhysicsConstraint(obj1, obj2)

Find the physics constraint associated with the given 2 objects and remove it.
Parameters:
Name Type Description
obj1 v3d.Object3D The object having the constraint.
obj2 v3d.Object3D The other object having the constraint.

resetPhysicsBody(body)

Cleanup forces and velocities for the given physics body.
Parameters:
Name Type Description
body Ammo.btRigidBody The physics body.
See:

setPhysicsBodyTransformFromObj(body, obj)

Set the given physics body's world transform from the given scene object.
Parameters:
Name Type Description
body Ammo.btRigidBody The physics body.
obj Object3D The scene object.
See: