btUniformScalingShape Class Reference
#include <btUniformScalingShape.h>
List of all members.
Public Member Functions |
virtual void | batchedUnitVectorGetSupportingVertexWithoutMargin (const btVector3 *vectors, btVector3 *supportVerticesOut, int numVectors) const |
| btUniformScalingShape (btConvexShape *convexChildShape, btScalar uniformScalingFactor) |
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 |
const btConvexShape * | getChildShape () const |
btConvexShape * | getChildShape () |
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 |
btScalar | getUniformScalingFactor () 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 | ~btUniformScalingShape () |
Private Attributes |
btConvexShape * | m_childConvexShape |
btScalar | m_uniformScalingFactor |
Detailed Description
The btUniformScalingShape allows to re-use uniform scaled instances of btConvexShape in a memory efficient way. Istead of using btUniformScalingShape, it is better to use the non-uniform setLocalScaling method on convex shapes that implement it.
Definition at line 24 of file btUniformScalingShape.h.
Constructor & Destructor Documentation
btUniformScalingShape::btUniformScalingShape |
( |
btConvexShape * |
convexChildShape, |
|
|
btScalar |
uniformScalingFactor | |
|
) |
| | |
virtual btUniformScalingShape::~btUniformScalingShape |
( |
|
) |
[virtual] |
Member Function Documentation
virtual void btUniformScalingShape::batchedUnitVectorGetSupportingVertexWithoutMargin |
( |
const btVector3 * |
vectors, |
|
|
btVector3 * |
supportVerticesOut, |
|
|
int |
numVectors | |
|
) |
| | const [virtual] |
virtual void btUniformScalingShape::calculateLocalInertia |
( |
btScalar |
mass, |
|
|
btVector3 & |
inertia | |
|
) |
| | const [virtual] |
void btUniformScalingShape::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 btUniformScalingShape::getAabbSlow |
( |
const btTransform & |
t, |
|
|
btVector3 & |
aabbMin, |
|
|
btVector3 & |
aabbMax | |
|
) |
| | const [virtual] |
const btConvexShape* btUniformScalingShape::getChildShape |
( |
|
) |
const [inline] |
btConvexShape* btUniformScalingShape::getChildShape |
( |
|
) |
[inline] |
virtual const btVector3& btUniformScalingShape::getLocalScaling |
( |
|
) |
const [virtual] |
virtual btScalar btUniformScalingShape::getMargin |
( |
|
) |
const [virtual] |
virtual const char* btUniformScalingShape::getName |
( |
|
) |
const [inline, virtual] |
virtual int btUniformScalingShape::getNumPreferredPenetrationDirections |
( |
|
) |
const [virtual] |
virtual void btUniformScalingShape::getPreferredPenetrationDirection |
( |
int |
index, |
|
|
btVector3 & |
penetrationVector | |
|
) |
| | const [virtual] |
btScalar btUniformScalingShape::getUniformScalingFactor |
( |
|
) |
const [inline] |
virtual btVector3 btUniformScalingShape::localGetSupportingVertex |
( |
const btVector3 & |
vec |
) |
const [virtual] |
virtual btVector3 btUniformScalingShape::localGetSupportingVertexWithoutMargin |
( |
const btVector3 & |
vec |
) |
const [virtual] |
virtual void btUniformScalingShape::setLocalScaling |
( |
const btVector3 & |
scaling |
) |
[virtual] |
virtual void btUniformScalingShape::setMargin |
( |
btScalar |
margin |
) |
[virtual] |
Member Data Documentation
The documentation for this class was generated from the following file: