Type |
Rigidbody Type |
Functions of different types of rigid bodies |
Type |
Use Gravity |
Bool |
Use Gravity |
UseGravity |
Mass (kg) |
Float |
Mass (kg), the minimum effective mass is 0.001kg, if it is 0, then it is infinite mass and will not move under force. |
Mass |
Center of Mass |
Vector3 |
Solo lectura Position of the center of gravity, local coordinate system |
CenterOfMass |
Velocity (m/s) |
Vector3 |
Linear velocity of rigid body motion |
Velocity |
Angular Velocity (rad/s) |
Vector3 |
Angular velocity of rigid body motion |
AngularVelocity |
Drag |
Float |
Coefficient of natural decay of linear velocity, the larger the coefficient, the faster the decay of velocity. |
Drag |
Angular Drag |
Float |
Angular velocity natural decay coefficient, the larger the coefficient, the faster the velocity decays. |
AngularDrag |
Constrain |
Int |
The constraints imposed on the rigid body, a collection of RigidbodyConstrainType. |
Constrain |