Handles collision callbacks between tags.
Collision tag registry for tag-to-bitmask conversion.
Conversion factor. Default 30.
Fixed timestep (seconds). Default 1/60.
Planck.js world.
Create a physics body
Clean up and destroy the physics world
Destroy a physics body
Disable debug renderer
Enable debug renderer
Get all bodies in the world
Get debug renderer if enabled
Query AABB (axis-aligned bounding box)
Query point
Raycast from one point to another
Step the physics simulation (called by Engine update loop) Uses fixed timestep for deterministic physics
Convert pixels to meters
Convert PIXI Point (pixels) to Planck Vec2 (meters)
Convert meters to pixels
Convert Planck Vec2 (meters) to PIXI Point (pixels)
Planck.js physics simulation manager.
Example