Rigidbody
Properties
mass (float)
drag (float)
angularDrag (float)
applyGravity (bool)
colliderRadius (float)
colliderSize (Vector3)
Constructor
Empty constructor
Methods
setMass(mass : float)
Sets the mass of the rigidbody.
setDrag(drag : float)
Sets the drag of the rigidbody.
setAngularDrag(angularDrag : float)
Sets the angular drag of the rigidbody.
setApplyGravity(applyGravity : bool)
Sets whether the rigidbody applies gravity.
setColliderRadius(colliderRadius : float)
Sets the radius of the collider.
setColliderSize(colliderSize : Vector3)
Sets the size of the collider.
addForce(force : Vector3)
Adds a force to the rigidbody.
addTorque(force : Vector3)
Adds a torque to the rigidbody.
setVelocity(velocity : Vector3)
Sets the velocity of the rigidbody.
setAngularVelocity(velocity : Vector3)
Sets the angular velocity of the rigidbody.