Optionalallowedallowed degrees of freedom
Optionalallowwhether this body is allowed to sleep
Optionalangularangular damping
Optionalcollideif true, and the body MotionType is KINEMATIC, this body will collide with non-dynamic bodies
Optionalcollisiongroups this body is part of
Optionalcollisiongroups this body collides with
Optionalenhancedenable enhanced internal edge removal to eliminate ghost collisions on internal edges
Optionalfrictionbody friction
Optionalfrictionthe material combine mode for friction
Optionalgravityfactor for gravity applied to this body
Optionallinearlinear damping
OptionalmassOverride mass only. Inertia will be calculated from the shape and scaled to match this mass. This is ignored if massPropertiesOverride is provided.
OptionalmassOverride mass properties for this body (both mass and inertia). Useful for triangle meshes and other complex shapes where mass properties cannot be derived from the shape alone, or to use custom values. If not provided, mass properties are computed from the shape. If provided, it will be copied into the body mass properties (not referenced). Takes precedence over the mass field.
Optionalmaxmax angular velocity
Optionalmaxmax linear velocity
Optionalmotionmotion quality
motion type (static, kinematic, dynamic)
object layer the body belongs to
Optionalpositionstarting position
Optionalquaternionstarting quaternion
Optionalrestitutionbody restitution
Optionalrestitutionthe material combine mode for restitution
Optionalsensorshape for the body. Use null to create a body with an EmptyShape
Optionalusewhether to use manifold reduction for this body
Optionaluseran optional user-defined field, defaults to null
settings for creating a new rigid body