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.
Full documentation for Compound Physics Shapes is now in the User Manual.
Phase 3 of this tutorial is still incomplete
Open Project ↗
Collision Picking - click to select a shape
A sample showing how to use the physics raycast to pick entities
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.
Sample showing how to pick an entity by tag using raycastAll
A sample with a script to setup and enable CCD for very fast moving physics objects
A sample showing how to place objects in the world by using physics. Click on ground to place a box.
Raycasting with multiple camera viewports. Click on the shapes in each view
Sample showing how to pick at an entity
A simple third person controller.
An implementation of vehicle physics in PlayCanvas, using the RaycastVehicle API in ammo.js. Supports desktop, mobile and VR.