Class BodyDS

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

class BodyDS : public NewtonEulerDS, public std11::enable_shared_from_this<BodyDS>

Public Functions

ACCEPT_BASE_VISITORS(NewtonEulerDS)

visitors hook

bool allowSelfCollide()

Return the value of the _allowSelfCollide flag.

virtual SP::SiconosVector base_position()

Make the base position of the contactors equal to the DS q vector.

Return
a SP::SiconosVector

SP::SiconosContactorSet contactors() const

Access the contactor set associated with this body.

Return
A SP::SiconosContactorSet

void setAllowSelfCollide(bool x)

Set the value of the _allowSelfCollide flag.

void setContactors(SP::SiconosContactorSet c)

Provide a set of contactors to the body.

Parameters
  • c: A SP::SiconosContactorSet