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() ==
NULL)
51 oParent->
SetCollision(dCreateCylinder(0, _radius, _length),
true);
53 dGeomCylinderSetParams(oParent->GetCollisionId(), _radius, _length);
Base class for all ODE collisions.
Definition: ODECollision.hh:41
Cylinder collision.
Definition: CylinderShape.hh:43
void SetCollision(dGeomID _collisionId, bool _placeable)
Set the encapsulated collsion 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
#define NULL
Definition: CommonTypes.hh:31
boost::shared_ptr< Collision > CollisionPtr
Definition: PhysicsTypes.hh:113