Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commit61a33237e0

README.md

phys.setBodyType

Change a rigid body's type at runtime while preserving its mass, colliders, and joints — only how it responds to forces and position writes changes. This is the move behind ragdoll activation (pose kinematic, flip to dynamic on hit), freeze and unfreeze mechanics, and platforms that alternate between scripted kinematic motion and stationary static. An unknown body-type string raises an error listing the valid values (dynamic, kinematic, static). Returns the entity ID.