New btConeshape member functions to can set radius and height for the
cone shape after creation
This commit is contained in:
@@ -43,6 +43,15 @@ public:
|
|||||||
btScalar getRadius() const { return m_radius;}
|
btScalar getRadius() const { return m_radius;}
|
||||||
btScalar getHeight() const { return m_height;}
|
btScalar getHeight() const { return m_height;}
|
||||||
|
|
||||||
|
void setRadius(const btScalar radius)
|
||||||
|
{
|
||||||
|
m_radius = radius;
|
||||||
|
}
|
||||||
|
void setHeight(const btScalar height)
|
||||||
|
{
|
||||||
|
m_height = height;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
virtual void calculateLocalInertia(btScalar mass,btVector3& inertia) const
|
virtual void calculateLocalInertia(btScalar mass,btVector3& inertia) const
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user