Skip to main content

14 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

Compare collision picking and framebuffer picking to select 3D entities when the user clicks the scene.

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.