Public Member Functions | Private Attributes
btConvex2dShape Class Reference

#include <btConvex2dShape.h>

List of all members.

Public Member Functions

virtual void batchedUnitVectorGetSupportingVertexWithoutMargin (const btVector3 *vectors, btVector3 *supportVerticesOut, int numVectors) const
 btConvex2dShape (btConvexShape *convexChildShape)
virtual void calculateLocalInertia (btScalar mass, btVector3 &inertia) const
void getAabb (const btTransform &t, btVector3 &aabbMin, btVector3 &aabbMax) const
 getAabb's default implementation is brute force, expected derived classes to implement a fast dedicated version
virtual void getAabbSlow (const btTransform &t, btVector3 &aabbMin, btVector3 &aabbMax) const
btConvexShape * getChildShape ()
const btConvexShape * getChildShape () const
virtual const btVector3 & getLocalScaling () const
virtual btScalar getMargin () const
virtual const char * getName () const
virtual int getNumPreferredPenetrationDirections () const
virtual void getPreferredPenetrationDirection (int index, btVector3 &penetrationVector) const
virtual btVector3 localGetSupportingVertex (const btVector3 &vec) const
virtual btVector3 localGetSupportingVertexWithoutMargin (const btVector3 &vec) const
virtual void setLocalScaling (const btVector3 &scaling)
virtual void setMargin (btScalar margin)
virtual ~btConvex2dShape ()

Private Attributes

btConvexShape * m_childConvexShape

Detailed Description

The btConvex2dShape allows to use arbitrary convex shapes as 2d convex shapes, with the Z component assumed to be 0. For 2d boxes, the btBox2dShape is recommended.

Definition at line 24 of file btConvex2dShape.h.


Constructor & Destructor Documentation

btConvex2dShape::btConvex2dShape ( btConvexShape *  convexChildShape)
virtual btConvex2dShape::~btConvex2dShape ( ) [virtual]

Member Function Documentation

virtual void btConvex2dShape::batchedUnitVectorGetSupportingVertexWithoutMargin ( const btVector3 *  vectors,
btVector3 *  supportVerticesOut,
int  numVectors 
) const [virtual]
virtual void btConvex2dShape::calculateLocalInertia ( btScalar  mass,
btVector3 &  inertia 
) const [virtual]
void btConvex2dShape::getAabb ( const btTransform t,
btVector3 &  aabbMin,
btVector3 &  aabbMax 
) const

getAabb's default implementation is brute force, expected derived classes to implement a fast dedicated version

virtual void btConvex2dShape::getAabbSlow ( const btTransform t,
btVector3 &  aabbMin,
btVector3 &  aabbMax 
) const [virtual]
btConvexShape* btConvex2dShape::getChildShape ( ) [inline]

Definition at line 42 of file btConvex2dShape.h.

const btConvexShape* btConvex2dShape::getChildShape ( ) const [inline]

Definition at line 47 of file btConvex2dShape.h.

virtual const btVector3& btConvex2dShape::getLocalScaling ( ) const [virtual]
virtual btScalar btConvex2dShape::getMargin ( ) const [virtual]
virtual const char* btConvex2dShape::getName ( ) const [inline, virtual]

Definition at line 52 of file btConvex2dShape.h.

virtual void btConvex2dShape::getPreferredPenetrationDirection ( int  index,
btVector3 &  penetrationVector 
) const [virtual]
virtual btVector3 btConvex2dShape::localGetSupportingVertex ( const btVector3 &  vec) const [virtual]
virtual btVector3 btConvex2dShape::localGetSupportingVertexWithoutMargin ( const btVector3 &  vec) const [virtual]
virtual void btConvex2dShape::setLocalScaling ( const btVector3 &  scaling) [virtual]
virtual void btConvex2dShape::setMargin ( btScalar  margin) [virtual]

Member Data Documentation

btConvexShape* btConvex2dShape::m_childConvexShape [private]

Definition at line 26 of file btConvex2dShape.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


bullet
Author(s): Erwin Coumans, ROS package maintained by Tully Foote
autogenerated on Wed Oct 31 2012 07:54:32