17 #ifndef _ODECYLINDERSHAPE_HH_ 18 #define _ODECYLINDERSHAPE_HH_ 43 public:
void SetSize(
double _radius,
double _length)
48 boost::dynamic_pointer_cast<
ODECollision>(this->collisionParent);
50 if (oParent->GetCollisionId() ==
nullptr)
51 oParent->
SetCollision(dCreateCylinder(0, _radius, _length),
true);
53 dGeomCylinderSetParams(oParent->GetCollisionId(), _radius, _length);
Forward declarations for the common classes.
Definition: Animation.hh:26
Base class for all ODE collisions.
Definition: ODECollision.hh:40
Cylinder collision.
Definition: CylinderShape.hh:38
void SetCollision(dGeomID _collisionId, bool _placeable)
Set the encapsulated collision object.
boost::shared_ptr< ODECollision > ODECollisionPtr
Definition: ODETypes.hh:39
ODE cylinder shape.
Definition: ODECylinderShape.hh:32
virtual ~ODECylinderShape()
Destructor.
Definition: ODECylinderShape.hh:40
void SetSize(double _radius, double _length)
Set the size of the cylinder.
Definition: ODECylinderShape.hh:43
virtual void SetSize(double _radius, double _length)
Set the size of the cylinder.
ODECylinderShape(CollisionPtr _parent)
Constructor.
Definition: ODECylinderShape.hh:36
boost::shared_ptr< Collision > CollisionPtr
Definition: PhysicsTypes.hh:113