Skip to main content

15 docs tagged with "physics"

View all tags

Collision and Triggers

Use collision shapes with rigidbodies for physical contacts and trigger volumes for overlap events without blocking motion.

Compound Physics Shapes

Combine multiple collision shapes into one compound rigidbody for accurate physics on complex imported meshes.

Crash Course - Make a Game

Follow an end-to-end PlayCanvas game build with video and a playable demo covering physics, UI, and core workflow.

Entity Picking

Find out which Entity the user clicked or touched, first with a physics ray cast and then with the Picker, and learn when to use each.

First Person Movement

Build a first-person character from scratch. Look around with the mouse, walk with forces on a rigid body and jump, in a small level made of boxes.

Forces and Impulses

Apply forces, impulses, and torques to dynamic rigidbodies and tune damping and mass for responsive physics-driven motion.

Physics raycasting by tag

Filter physics raycast hits by entity tags so picking ignores the wrong colliders and only selects intended objects.

Physics with CCD

Enable continuous collision detection on rigidbodies so fast projectiles do not tunnel through thin colliders between steps.

Place an entity with physics

Spawn physics-enabled props at clicked world positions using raycasts against the ground so new bodies collide correctly.

Raycast with Camera Viewports

Convert pointer coordinates into per-camera rays when using split viewports so picking hits the correct 3D region in each pane.

Simple shape raycasting

Cast a physics ray from the camera through the pointer to detect which entity or shape sits under the cursor.

Third Person Controller

Follow a controllable character with a chase camera while handling input and physics for a basic third-person movement rig.

Vehicle Physics

Drive a wheeled vehicle with Ammo raycast wheels, suspension, and steering that works on desktop, mobile, and WebXR.