Class SiconosCollisionQueryResult

Defined in Program listing for file mechanics/src/collision/SiconosCollisionQueryResult.hpp

class SiconosCollisionQueryResult

Holds one result of a line segment intersection query against the graph of body contactors maintained by a SiconosCollisionManager.

Public Members

SP::BodyDS body

Body owning the contactor that was intersected, may be null for static contactors.

SP::SiconosContactor contactor

The contactor that was intersected.

double distance

Distance from reference point (start of line segment or query center)

SiconosVector point

Closest point on contactor in world coordinates.

SP::SiconosShape shape

The shape that was intersected.