Chipmunk2D Pro API Reference  7.0.1
 All Classes Functions Variables Typedefs Enumerations Enumerator Properties Groups Pages
Public Attributes | List of all members
cpPointQueryInfo Struct Reference

Point query info struct. More...

#include <cpShape.h>

Public Attributes

const cpShapeshape
 The nearest shape, NULL if no shape was within range.
 
cpVect point
 The closest point on the shape's surface. (in world space coordinates)
 
cpFloat distance
 The distance to the point. The distance is negative if the point is inside the shape.
 
cpVect gradient
 The gradient of the signed distance function. More...
 

Detailed Description

Point query info struct.

Member Data Documentation

cpVect cpPointQueryInfo::gradient

The gradient of the signed distance function.

The value should be similar to info.p/info.d, but accurate even for very small values of info.d.


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