#include <btUniformScalingShape.h>
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 |
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 |
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 |
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.
btUniformScalingShape::btUniformScalingShape | ( | btConvexShape * | convexChildShape, |
btScalar | uniformScalingFactor | ||
) |
virtual btUniformScalingShape::~btUniformScalingShape | ( | ) | [virtual] |
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] |
btConvexShape* btUniformScalingShape::getChildShape | ( | ) | [inline] |
Definition at line 49 of file btUniformScalingShape.h.
const btConvexShape* btUniformScalingShape::getChildShape | ( | ) | const [inline] |
Definition at line 54 of file btUniformScalingShape.h.
virtual const btVector3& btUniformScalingShape::getLocalScaling | ( | ) | const [virtual] |
virtual btScalar btUniformScalingShape::getMargin | ( | ) | const [virtual] |
virtual const char* btUniformScalingShape::getName | ( | ) | const [inline, virtual] |
Definition at line 59 of file btUniformScalingShape.h.
virtual int btUniformScalingShape::getNumPreferredPenetrationDirections | ( | ) | const [virtual] |
virtual void btUniformScalingShape::getPreferredPenetrationDirection | ( | int | index, |
btVector3 & | penetrationVector | ||
) | const [virtual] |
btScalar btUniformScalingShape::getUniformScalingFactor | ( | ) | const [inline] |
Definition at line 44 of file btUniformScalingShape.h.
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] |
btConvexShape* btUniformScalingShape::m_childConvexShape [private] |
Definition at line 26 of file btUniformScalingShape.h.
Definition at line 28 of file btUniformScalingShape.h.