Chipmunk2D Pro API Reference  7.0.1
 All Classes Functions Variables Typedefs Enumerations Enumerator Properties Groups Pages
Properties | List of all members
ChipmunkPointQueryInfo Class Reference

Inherits NSObject.

Properties

cpPointQueryInfoinfo
 Returns a pointer to the underlying cpNearestPointQueryInfo C struct.
 
ChipmunkShapeshape
 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...
 

Property Documentation

- (cpFloat) distance
readnonatomicassign

The distance between the point and the surface of the shape.

Negative distances mean that the point is that depth inside the shape.

- (cpVect) gradient
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.


The documentation for this class was generated from the following file: