17#ifndef _ODECYLINDERSHAPE_HH_
18#define _ODECYLINDERSHAPE_HH_
43 public:
void SetSize(
double _radius,
double _length)
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.
CylinderShape(CollisionPtr _parent)
Constructor.
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
namespace for physics
Definition Actor.hh:41
boost::shared_ptr< Collision > CollisionPtr
Definition PhysicsTypes.hh:113
Forward declarations for the common classes.
Definition Animation.hh:27