Go to the documentation of this file.
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);
virtual void SetSize(double _radius, double _length)
Set the size of the cylinder.
Forward declarations for the common classes.
Definition: Animation.hh:27
boost::shared_ptr< ODECollision > ODECollisionPtr
Definition: ODETypes.hh:39
Cylinder collision.
Definition: CylinderShape.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
ODE cylinder shape.
Definition: ODECylinderShape.hh:33
boost::shared_ptr< Collision > CollisionPtr
Definition: PhysicsTypes.hh:114