Chipmunk2D Pro API Reference
7.0.1
|
Inherits NSObject.
Properties | |
cpPointQueryInfo * | info |
Returns a pointer to the underlying cpNearestPointQueryInfo C struct. | |
ChipmunkShape * | shape |
The ChipmunkShape found. | |
cpVect | point |
The closest point on the surface of the shape to the point. | |
cpFloat | distance |
The distance between the point and the surface of the shape. More... | |
cpVect | gradient |
The gradient of the signed distance function. More... | |
|
readnonatomicassign |
The distance between the point and the surface of the shape.
Negative distances mean that the point is that depth inside the shape.
|
readnonatomicassign |
The gradient of the signed distance function.
The same as info.point/info.dist, but accurate even for very small values of info.dist.