13 m_pcGrippable(nullptr),
14 m_ptLinearFriction(nullptr),
15 m_ptAngularFriction(nullptr) {}
21 if(m_pcGrippable !=
nullptr)
delete m_pcGrippable;
22 if(m_ptLinearFriction !=
nullptr) {
24 cpConstraintFree(m_ptLinearFriction);
26 if(m_ptAngularFriction !=
nullptr) {
28 cpConstraintFree(m_ptAngularFriction);
37 if(m_pcGrippable !=
nullptr) {
48 if(m_pcGrippable !=
nullptr) {
66 m_ptLinearFriction->maxBias = f_max_bias;
67 m_ptLinearFriction->maxForce = f_max_force;
81 m_ptAngularFriction->maxBias = f_max_bias;
82 m_ptAngularFriction->maxForce = f_max_force;
float Real
Collects all ARGoS code.
The namespace containing all the ARGoS related code.
Basic class for an entity that contains other entities.
CDynamics2DEngine & GetDynamics2DEngine()
Returns the dynamics 2D engine state.
Base class for object models with a single body.
cpBody * GetBody()
Returns the body as non-const pointer.
virtual void MoveTo(const CVector3 &c_position, const CQuaternion &c_orientation)
virtual void MoveTo(const CVector3 &c_position, const CQuaternion &c_orientation)
virtual ~CDynamics2DStretchableObjectModel()
CDynamics2DStretchableObjectModel(CDynamics2DEngine &c_engine, CComposableEntity &c_entity)
void SetLinearFriction(Real f_max_bias, Real f_max_force)
Sets the linear friction of this object.
void SetAngularFriction(Real f_max_bias, Real f_max_force)
Sets the angular friction of this object.