Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commitdd348ac6c3

README.md

phys.addBody

Add a rigid body and collider to an existing entity in one call. The body type chooses how it behaves: "dynamic" falls and responds to forces and collisions, "static" is immovable and only collides, and "kinematic" is script-driven and ignores forces. Options tune mass and gravity, the collider geometry (shape, size, radius, height), surface response (friction, restitution), whether the collider acts as a trigger volume, and whether to skip the collider entirely. It flashes a purple outline so the change is visible in the viewport, and returns the entity ID.