Collision and Triggers
Rigidbodies collide with each other, a sound is played on a collision and a trigger volume resets the shapes.
Rigidbodies collide with each other, a sound is played on a collision and a trigger volume resets the shapes.
Use the cursor keys to apply impulses, the WASD keys to apply torques and rotate the cube. Press and hold F to apply a constant upward force to cancel gravity effects.
An implementation of vehicle physics in PlayCanvas, using the RaycastVehicle API in ammo.js. Supports desktop, mobile and VR.