Chipmunk2D Unity Documentation | Main Page | Forum

Manual

Tutorials

API

Classes

Structs

Enumerations

Chipmunk

Static Class

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


Variables


gravityThe amount of gravity to use.
solverIterationCountThe number of iterations to use in the solver
minPenetrationForPenaltyThe amount of allowed overlap of physics shapes.
dampingAmount of damping to apply to every body's velocity and angular velocity.
idleSpeedThresholdThe velocity at which an object is considered idle.
sleepTimeThresholdThe minimum time in seconds a group of objects must be idle before falling asleep.
collisionBiasRate at which overlapping objects are pushed apart.


Functions


UpdatedTransformLet Chipmunk know that you updated a Unity transform.
NearestPointQueryIterate all the shapes within a certain distance of a point.
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.