17#ifndef _ODECYLINDERSHAPE_HH_
18#define _ODECYLINDERSHAPE_HH_
43 public:
void SetSize(
double _radius,
double _length)
45 CylinderShape::SetSize(_radius, _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);
Cylinder collision.
Definition CylinderShape.hh:33
virtual void SetSize(double _radius, double _length)
Set the size of the cylinder.
ODE cylinder shape.
Definition ODECylinderShape.hh:33
ODECylinderShape(CollisionPtr _parent)
Constructor.
Definition ODECylinderShape.hh:36
virtual ~ODECylinderShape()
Destructor.
Definition ODECylinderShape.hh:40
void SetSize(double _radius, double _length)
Set the size of the cylinder.
Definition ODECylinderShape.hh:43
CollisionPtr collisionParent
This shape's collision parent.
Definition Shape.hh:73
boost::shared_ptr< ODECollision > ODECollisionPtr
Definition ODETypes.hh:39
boost::shared_ptr< Collision > CollisionPtr
Definition PhysicsTypes.hh:113
Forward declarations for the common classes.
Definition Animation.hh:27