Summary

Adds physics properties to an object. Requires a collider to be attached to the same object.

Properties

AngularDamping
AngularVelocity
CollisionEventsEnabled Enable or disable touch events. If you disable the events then ICollisionListener won't get any touch events and you won't get things like collision sounds.
CollisionUpdateEventsEnabled Like CollisionEventsEnabled but means the OnCollisionUpdate gets called when the collision persists
Gravity Is gravity enabled or not.
LinearDamping
Locking
Mass
MassCenter Center of mass for this rigidbody in local space coordinates.
MassCenterOverride
MassOverride Override mass for this body, only when value is more than zero
MotionEnabled
OverrideMassCenter
PhysicsBody Get the actual physics body that was created by this component. You should be careful, this can of course be null when the object is not enabled or the physics world is not available. It might also get deleted and re-created, so best use this to access, but don't store it.
RigidbodyFlags
Sleeping
StartAsleep
Touching This is a list of all of the triggers that we are touching.
Velocity

Methods

ApplyForce
ApplyForceAt
ApplyImpulse
ApplyImpulseAt
ApplyTorque
ClearForces Clear accumulated linear forces (Sandbox.Rigidbody.ApplyForce(Vector3@) and Sandbox.Rigidbody.ApplyForceAt(Vector3@,Vector3@)) during this physics frame that were not yet applied to the physics body.
FindClosestPoint
GetVelocityAtPoint
SmoothMove
SmoothRotate
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.