Exposed another glut method (the demos really require cleanup soon!)

First steps for a raycast-vehicle demo (far from finished)
This commit is contained in:
ejcoumans
2006-09-05 07:36:55 +00:00
parent e84716482d
commit fa96109cd9
22 changed files with 319 additions and 63 deletions

View File

@@ -71,6 +71,11 @@ public:
return 1;
}
virtual float GetRadius() const
{
return GetHalfExtents().getX();
}
//debugging
virtual char* GetName()const
{
@@ -98,6 +103,11 @@ public:
return "CylinderX";
}
virtual float GetRadius() const
{
return GetHalfExtents().getY();
}
};
class CylinderShapeZ : public CylinderShape
@@ -118,6 +128,11 @@ public:
return "CylinderZ";
}
virtual float GetRadius() const
{
return GetHalfExtents().getX();
}
};