Manual:

Tutorials:

API:

ChipmunkBody

Class : Inherits from MonoBehaviour

A ChipmunkBody is the Chipmunk equivalent of Unity's Ridigbody component.


Variables


momentCalculationModeHow the moment of inertia should be calculated when the object is created.
interpolationModeHow the transform position should be set before Update() methods are called.
massMass of the body.
momentMoment of inertia of the body.
positionPosition of the rigid body.
angleAngle of the body in radians.
velocityLinear velocity of the rigid body's center of gravity.
forceForce applied to the rigid body's center of gravity.
angularVelocityAngular velocity of the rigid body in radians/second.
torqueTorque applied to the rigid body.
velocityLimitLinear velocity limit for the body.
angularVelocityLimitAngular velocity limit for the body in radians/second.
cogOffsetCenter of gravity position relative to rigid body's parent transform.
isKinematicIs the rigid body kinematic or not.
isSleepingIs the rigid body sleeping or not.
kineticEnergyGet the kinetic energy of the rigid body.


Functions:


AwakeWake up the rigid body if it is sleeping.
SleepForce a body to fall asleep immediately.
ResetForces
ApplyForce
ApplyImpulse
VelocityAtWorldPoint
VelocityAtLocalPoint
EachArbiterUses a delegate function to iterate over the @ChipmunkArbiter@ structs associated with this rigid body.