btConeShape Class Reference

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>

Inheritance diagram for btConeShape:
Inheritance graph
[legend]
Collaboration diagram for btConeShape:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 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

Private Member Functions

btVector3 coneLocalSupport (const btVector3 &v) const

Private Attributes

btScalar m_sinAngle
btScalar m_radius
btScalar m_height
int m_coneIndices [3]

Detailed Description

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.


Constructor & Destructor Documentation

btConeShape::btConeShape ( btScalar  radius,
btScalar  height 
)

Definition at line 20 of file btConeShape.cpp.


Member Function Documentation

void btConeShape::batchedUnitVectorGetSupportingVertexWithoutMargin ( const btVector3 vectors,
btVector3 supportVerticesOut,
int  numVectors 
) const [virtual]

Implements btConvexShape.

Definition at line 107 of file btConeShape.cpp.

virtual void btConeShape::calculateLocalInertia ( btScalar  mass,
btVector3 inertia 
) const [inline, virtual]

Implements btCollisionShape.

Definition at line 45 of file btConeShape.h.

btVector3 btConeShape::coneLocalSupport ( const btVector3 v  )  const [private]

Definition at line 67 of file btConeShape.cpp.

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]

Implements btCollisionShape.

Definition at line 72 of file btConeShape.h.

btScalar btConeShape::getRadius (  )  const [inline]

Definition at line 41 of file btConeShape.h.

btVector3 btConeShape::localGetSupportingVertex ( const btVector3 vec  )  const [virtual]

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.


Member Data Documentation

int btConeShape::m_coneIndices[3] [private]

Definition at line 30 of file btConeShape.h.

Definition at line 29 of file btConeShape.h.

Definition at line 28 of file btConeShape.h.

Definition at line 27 of file btConeShape.h.


The documentation for this class was generated from the following files:

Generated on Mon Feb 15 22:22:11 2010 for Bullet Collision Detection & Physics Library by  doxygen 1.6.1