Manual:

Tutorials:

API:

Chipmunk

Static Class

Similar in function to Unity's Physics class, but for working with Chipmunk2D


Variables


gravityAmount of gravity to use.
solverIterationCountNumber of iterations to use in the solver
minPenetrationForPenaltyAmount of allowed overlap of physics shapes.
dampingAmount of damping to apply to velocity and angularVelocity.
idleSpeedThresholdWhen objects are moving slower than this for longer than the sleepTimeThreshold they are considered idle. A group of objects in contact fall asleep when they are all idle.
sleepTimeThresholdWhen objects are moving slower than the idleSpeedThreshold for longer than the sleepTimeThreshold they are considered idle. A group of objects in contact fall asleep when they are all idle.
collisionBiasRate at which overlapping objects are pushed apart.


Functions:


UpdatedTransformLet Chipmunk know that you updated at Unity transform.
NearestPointQueryIterate all the shapes within maxDist of point by calling delegate for each.
NearestPointQueryNearestReturn only information about the nearest shape to the query point.
SegmentQueryFind all shapes overlapping the segment with the given start and end points.
SegmentQueryFirstReturn only the first shape struck by the segment query as it goes from start to end.