Chipmunk
Static Class
Similar in function to Unity's Physics class, but for working with Chipmunk2D
Variables
gravity | Amount of gravity to use. |
solverIterationCount | Number of iterations to use in the solver |
minPenetrationForPenalty | Amount of allowed overlap of physics shapes. |
damping | Amount of damping to apply to velocity and angularVelocity. |
idleSpeedThreshold | When 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. |
sleepTimeThreshold | When 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. |
collisionBias | Rate at which overlapping objects are pushed apart. |
Functions:
UpdatedTransform | Let Chipmunk know that you updated at Unity transform. |
NearestPointQuery | Iterate all the shapes within maxDist of point by calling delegate for each. |
NearestPointQueryNearest | Return only information about the nearest shape to the query point. |
SegmentQuery | Find all shapes overlapping the segment with the given start and end points. |
SegmentQueryFirst | Return only the first shape struck by the segment query as it goes from start to end. |