39 ptBody->p = cpv(cPosition.
GetX(), cPosition.
GetY());
40 cpBodySetAngle(ptBody, cZAngle.
GetValue());
43 cpCircleShapeNew(ptBody, fRadius, cpvzero));
58 ptBody = cpBodyNewStatic();
59 ptBody->p = cpv(cPosition.
GetX(), cPosition.
GetY());
60 cpBodySetAngle(ptBody, cZAngle.
GetValue());
62 cpShape* ptShape = cpSpaceAddShape(
64 cpCircleShapeNew(ptBody,
85 cpCircleShapeNew(
GetBody(), f_radius, cpvzero));
float Real
Collects all ARGoS code.
The namespace containing all the ARGoS related code.
REGISTER_STANDARD_DYNAMICS2D_OPERATIONS_ON_ENTITY(CEPuckEntity, CDynamics2DEPuckModel)
const SAnchor & GetOriginAnchor() const
Returns a const reference to the origin anchor associated to this entity.
CQuaternion Orientation
The orientation of the anchor wrt the global coordinate system.
CVector3 Position
The position of the anchor wrt the global coordinate system.
CEmbodiedEntity & GetEmbodiedEntity()
Returns the embodied entity associated to this physics model.
It defines the basic type CRadians, used to store an angle value in radians.
Real GetValue() const
Returns the value in radians.
void ToEulerAngles(CRadians &c_z_angle, CRadians &c_y_angle, CRadians &c_x_angle) const
Real GetX() const
Returns the x coordinate of this vector.
Real GetY() const
Returns the y coordinate of this vector.
CDynamics2DCylinderModel(CDynamics2DEngine &c_engine, CCylinderEntity &c_entity)
void Resize(Real f_radius, Real f_height)
cpFloat GetCylinderLinearFriction() const
cpFloat GetCylinderAngularFriction() const
CDynamics2DEngine & GetDynamics2DEngine()
Returns the dynamics 2D engine state.
cpBody * GetBody()
Returns the body as non-const pointer.
virtual void SetBody(cpBody *pt_body, Real f_height)
Sets the body and registers the default origin anchor method.
A stretchable and grippable object model for the dynamics 2D engine.
void SetLinearFriction(Real f_max_bias, Real f_max_force)
Sets the linear friction of this object.
void SetGrippable(CDynamics2DGrippable *pc_grippable)
void SetMass(Real f_mass)
CDynamics2DGrippable * GetGrippable()
void SetAngularFriction(Real f_max_bias, Real f_max_force)
Sets the angular friction of this object.