added ConeZ/ConeX

This commit is contained in:
Erwin Coumans 2006-11-21 08:22:01 +00:00
parent 2e4e4b4943
commit dba9042bb5

@ -27,6 +27,18 @@ m_height(height)
m_sinAngle = (m_radius / sqrt(m_radius * m_radius + m_height * m_height));
}
btConeShapeZ::btConeShapeZ (btScalar radius,btScalar height):
btConeShape(radius,height)
{
setConeUpIndex(2);
}
btConeShapeX::btConeShapeX (btScalar radius,btScalar height):
btConeShape(radius,height)
{
setConeUpIndex(0);
}
///choose upAxis index
void btConeShape::setConeUpIndex(int upIndex)
{