Body Def
Definition for creating a rigid body. Use the builder pattern or default values to configure.
Constructors
Properties
Allow this body to have faster rotation than normal. This increases the upper bound on the body angular velocity. Use this if a body has a small extent and high angular velocity. Warning: Increasing this can lead to instabilities.
Set this flag to false if this body should never fall asleep.
Angular damping is used to reduce the angular velocity. Damping is different from friction because friction only occurs with contact. Damping parameters should be between 0 and infinity, with 0 meaning no damping and infinity meaning full damping. Normally you will use a damping value between 0 and 0.1.
The initial angular velocity of the body in radians per second.
Should this body be prevented from rotating? Useful for characters.
Scale the gravity applied to this body. Non-dimensional.
Treat this body as high speed object that performs continuous collision detection against dynamic and kinematic bodies, but not other bullet bodies. Warning: Bullets should be used sparingly. They are not a solution for general dynamic-versus-dynamic continuous collision. They may interfere with joint constraints.
Linear damping is used to reduce the linear velocity. Damping is different from friction because friction only occurs with contact. Damping is not a replacement for friction and the two effects should be used together. Damping parameters should be between 0 and infinity, with 0 meaning no damping and infinity meaning full damping. Normally you will use a damping value between 0 and 0.1.
The initial linear velocity of the body's origin in world coordinates.
Sleep speed threshold, default 0.05 meters per second.