Chipmunk  6.0.3
Chipmunk API Reference for Kobold2D developers
cpSegmentQueryInfo Struct Reference

Segment query info struct. More...

#include <cpShape.h>

Collaboration diagram for cpSegmentQueryInfo:

Data Fields

cpShapeshape
 The shape that was hit, NULL if no collision occured.
cpFloat t
 The normalized distance along the query segment in the range [0, 1].
cpVect n
 The normal of the surface hit.

Detailed Description

Segment query info struct.


Field Documentation

The normal of the surface hit.

The shape that was hit, NULL if no collision occured.

The normalized distance along the query segment in the range [0, 1].


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