File mechanics/src/collision/SiconosCollisionQueryResult.hpp

Go to the source code of this file

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

class SiconosCollisionQueryResult
#include <SiconosCollisionQueryResult.hpp>

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.

Protected Functions

ACCEPT_SERIALIZATION(SiconosCollisionQueryResult)

serialization hooks