Overview of the Ammo namespace
masterThe Ammo namespace provides access to Ammo.js, which is a JavaScript port of the Bullet2 physics engine. It contains a comprehensive suite of classes for rigid body dynamics, soft body physics, collision detection, constraints, and raycasting.
Key functional areas include:
- Dynamics & Worlds: Managing physics simulations using
btDynamicsWorldorbtDiscreteDynamicsWorld. - Collision Shapes: Defining geometry for physical objects via classes like
btBoxShape,btSphereShape,btCapsuleShape, and complex meshes likebtBvhTriangleMeshShape. - Rigid Bodies: Creating physical entities with
btRigidBody. - Constraints: Connecting bodies using
btHingeConstraint,btSliderConstraint,btFixedConstraint, etc. - Raycasting: Performing intersection tests using
RayResultCallbackand related classes. - Soft Body Physics: Simulating deformable objects via
btSoftBodyandbtSoftRigidDynamicsWorld.