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 | |
BT_DECLARE_ALIGNED_ALLOCATOR () | |
btConeShape (btScalar radius, btScalar height) | |
virtual btVector3 | localGetSupportingVertex (const btVector3 &vec) const |
virtual btVector3 | localGetSupportingVertexWithoutMargin (const btVector3 &vec) const |
virtual void | batchedUnitVectorGetSupportingVertexWithoutMargin (const btVector3 *vectors, btVector3 *supportVerticesOut, int numVectors) const |
btScalar | getRadius () const |
btScalar | getHeight () const |
virtual void | calculateLocalInertia (btScalar mass, btVector3 &inertia) const |
virtual const char * | getName () const |
void | setConeUpIndex (int upIndex) |
choose upAxis index | |
int | getConeUpIndex () const |
virtual btVector3 | getAnisotropicRollingFrictionDirection () const |
the getAnisotropicRollingFrictionDirection can be used in combination with setAnisotropicFriction See Bullet/Demos/RollingFrictionDemo for an example | |
virtual void | setLocalScaling (const btVector3 &scaling) |
Private Member Functions | |
btVector3 | coneLocalSupport (const btVector3 &v) const |
Private Attributes | |
btScalar | m_sinAngle |
btScalar | m_radius |
btScalar | m_height |
int | m_coneIndices [3] |
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.
Definition at line 20 of file btConeShape.cpp.
void btConeShape::batchedUnitVectorGetSupportingVertexWithoutMargin | ( | const btVector3 * | vectors, | |
btVector3 * | supportVerticesOut, | |||
int | numVectors | |||
) | const [virtual] |
Implements btConvexShape.
Definition at line 107 of file btConeShape.cpp.
btConeShape::BT_DECLARE_ALIGNED_ALLOCATOR | ( | ) |
Reimplemented from btConvexInternalShape.
virtual void btConeShape::calculateLocalInertia | ( | btScalar | mass, | |
btVector3 & | inertia | |||
) | const [inline, virtual] |
Implements btCollisionShape.
Definition at line 47 of file btConeShape.h.
Definition at line 67 of file btConeShape.cpp.
virtual btVector3 btConeShape::getAnisotropicRollingFrictionDirection | ( | ) | const [inline, virtual] |
the getAnisotropicRollingFrictionDirection can be used in combination with setAnisotropicFriction See Bullet/Demos/RollingFrictionDemo for an example
Reimplemented from btCollisionShape.
Reimplemented in btConeShapeX, and btConeShapeZ.
Definition at line 87 of file btConeShape.h.
int btConeShape::getConeUpIndex | ( | ) | const [inline] |
Definition at line 82 of file btConeShape.h.
btScalar btConeShape::getHeight | ( | ) | const [inline] |
Definition at line 44 of file btConeShape.h.
virtual const char* btConeShape::getName | ( | ) | const [inline, virtual] |
Implements btCollisionShape.
Definition at line 74 of file btConeShape.h.
btScalar btConeShape::getRadius | ( | ) | const [inline] |
Definition at line 43 of file btConeShape.h.
Reimplemented from btConvexInternalShape.
Definition at line 117 of file btConeShape.cpp.
btVector3 btConeShape::localGetSupportingVertexWithoutMargin | ( | const btVector3 & | vec | ) | const [virtual] |
Implements btConvexShape.
Definition at line 102 of file btConeShape.cpp.
void btConeShape::setConeUpIndex | ( | int | upIndex | ) |
choose upAxis index
Definition at line 43 of file btConeShape.cpp.
void btConeShape::setLocalScaling | ( | const btVector3 & | scaling | ) | [virtual] |
Reimplemented from btConvexInternalShape.
Definition at line 134 of file btConeShape.cpp.
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.