Blender V4.5
btUniformScalingShape.h File Reference

Go to the source code of this file.

Functions

 BT_DECLARE_ALIGNED_ALLOCATOR ()
 btUniformScalingShape (btConvexShape *convexChildShape, btScalar uniformScalingFactor)
virtual ~btUniformScalingShape ()
virtual btVector3 localGetSupportingVertexWithoutMargin (const btVector3 &vec) const
 btConvexShape Interface
virtual btVector3 localGetSupportingVertex (const btVector3 &vec) const
virtual void batchedUnitVectorGetSupportingVertexWithoutMargin (const btVector3 *vectors, btVector3 *supportVerticesOut, int numVectors) const
virtual void calculateLocalInertia (btScalar mass, btVector3 &inertia) const
btScalar getUniformScalingFactor () const
btConvexShapegetChildShape ()
virtual const char * getName () 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
virtual void setLocalScaling (const btVector3 &scaling)
virtual const btVector3getLocalScaling () const
virtual void setMargin (btScalar margin)
virtual btScalar getMargin () const
virtual int getNumPreferredPenetrationDirections () const
virtual void getPreferredPenetrationDirection (int index, btVector3 &penetrationVector) const

Variables

btUniformScalingShape __pad0__
btScalar m_uniformScalingFactor

Function Documentation

◆ batchedUnitVectorGetSupportingVertexWithoutMargin()

virtual void batchedUnitVectorGetSupportingVertexWithoutMargin ( const btVector3 * vectors,
btVector3 * supportVerticesOut,
int numVectors ) const
virtual

◆ BT_DECLARE_ALIGNED_ALLOCATOR()

◆ btUniformScalingShape()

btUniformScalingShape::btUniformScalingShape ( btConvexShape * convexChildShape,
btScalar uniformScalingFactor )

◆ calculateLocalInertia()

virtual void calculateLocalInertia ( btScalar mass,
btVector3 & inertia ) const
virtual

Definition at line 54 of file btConeShape.h.

◆ getAabb()

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

Definition at line 54 of file btCapsuleShape.h.

◆ getAabbSlow()

◆ getChildShape()

btConvexShape * getChildShape ( )

Definition at line 51 of file btUniformScalingShape.h.

References btConvexShape(), and getChildShape().

◆ getLocalScaling()

virtual const btVector3 & getLocalScaling ( ) const
virtual

Definition at line 126 of file btCompoundShape.h.

◆ getMargin()

virtual btScalar getMargin ( ) const
virtual

Definition at line 137 of file btCompoundShape.h.

◆ getName()

virtual const char * getName ( ) const
virtual

Definition at line 61 of file btUniformScalingShape.h.

References getName().

◆ getNumPreferredPenetrationDirections()

virtual int getNumPreferredPenetrationDirections ( ) const
virtual

◆ getPreferredPenetrationDirection()

virtual void getPreferredPenetrationDirection ( int index,
btVector3 & penetrationVector ) const
virtual

◆ getUniformScalingFactor()

btScalar getUniformScalingFactor ( ) const

Definition at line 46 of file btUniformScalingShape.h.

References getUniformScalingFactor(), and m_uniformScalingFactor.

Referenced by getUniformScalingFactor().

◆ localGetSupportingVertex()

◆ localGetSupportingVertexWithoutMargin()

◆ setLocalScaling()

virtual void setLocalScaling ( const btVector3 & scaling)
virtual

◆ setMargin()

virtual void setMargin ( btScalar margin)
virtual

◆ ~btUniformScalingShape()

btUniformScalingShape::~btUniformScalingShape ( )
virtual

Definition at line 23 of file btUniformScalingShape.cpp.

Variable Documentation

◆ __pad0__

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 25 of file btUniformScalingShape.h.

◆ m_uniformScalingFactor

btScalar m_uniformScalingFactor

Definition at line 29 of file btUniformScalingShape.h.

Referenced by btUniformScalingShape(), and getUniformScalingFactor().