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:
@@ -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();
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user