The btConeShape implements a cone shape primitive, centered around the origin and aligned with the Y axis. The btConeShapeX is aligned around the X axis and btConeShapeZ around the Z axis. More...
#include <btConeShape.h>
Public Member Functions | |
virtual void | batchedUnitVectorGetSupportingVertexWithoutMargin (const btVector3 *vectors, btVector3 *supportVerticesOut, int numVectors) const |
btConeShape (btScalar radius, btScalar height) | |
virtual void | calculateLocalInertia (btScalar mass, btVector3 &inertia) const |
int | getConeUpIndex () const |
btScalar | getHeight () const |
virtual const char * | getName () const |
btScalar | getRadius () const |
virtual btVector3 | localGetSupportingVertex (const btVector3 &vec) const |
virtual btVector3 | localGetSupportingVertexWithoutMargin (const btVector3 &vec) const |
void | setConeUpIndex (int upIndex) |
choose upAxis index | |
virtual void | setLocalScaling (const btVector3 &scaling) |
Private Member Functions | |
btVector3 | coneLocalSupport (const btVector3 &v) const |
Private Attributes | |
int | m_coneIndices [3] |
btScalar | m_height |
btScalar | m_radius |
btScalar | m_sinAngle |
The btConeShape implements a cone shape primitive, centered around the origin and aligned with the Y axis. The btConeShapeX is aligned around the X axis and btConeShapeZ around the Z axis.
Definition at line 23 of file btConeShape.h.
btConeShape::btConeShape | ( | btScalar | radius, |
btScalar | height | ||
) |
virtual void btConeShape::batchedUnitVectorGetSupportingVertexWithoutMargin | ( | const btVector3 * | vectors, |
btVector3 * | supportVerticesOut, | ||
int | numVectors | ||
) | const [virtual] |
virtual void btConeShape::calculateLocalInertia | ( | btScalar | mass, |
btVector3 & | inertia | ||
) | const [inline, virtual] |
Definition at line 45 of file btConeShape.h.
btVector3 btConeShape::coneLocalSupport | ( | const btVector3 & | v | ) | const [private] |
int btConeShape::getConeUpIndex | ( | ) | const [inline] |
Definition at line 80 of file btConeShape.h.
btScalar btConeShape::getHeight | ( | ) | const [inline] |
Definition at line 42 of file btConeShape.h.
virtual const char* btConeShape::getName | ( | ) | const [inline, virtual] |
Definition at line 72 of file btConeShape.h.
btScalar btConeShape::getRadius | ( | ) | const [inline] |
Definition at line 41 of file btConeShape.h.
virtual btVector3 btConeShape::localGetSupportingVertex | ( | const btVector3 & | vec | ) | const [virtual] |
Reimplemented from btConvexInternalShape.
virtual btVector3 btConeShape::localGetSupportingVertexWithoutMargin | ( | const btVector3 & | vec | ) | const [virtual] |
void btConeShape::setConeUpIndex | ( | int | upIndex | ) |
choose upAxis index
virtual void btConeShape::setLocalScaling | ( | const btVector3 & | scaling | ) | [virtual] |
Reimplemented from btConvexInternalShape.
int btConeShape::m_coneIndices[3] [private] |
Definition at line 30 of file btConeShape.h.
btScalar btConeShape::m_height [private] |
Definition at line 29 of file btConeShape.h.
btScalar btConeShape::m_radius [private] |
Definition at line 28 of file btConeShape.h.
btScalar btConeShape::m_sinAngle [private] |
Definition at line 27 of file btConeShape.h.