Blender V4.3
btScaledBvhTriangleMeshShape.h File Reference

Go to the source code of this file.

Classes

struct  btScaledTriangleMeshShapeData
 do not change those serialization structures, it requires an updated sBulletDNAstr/sBulletDNAstr64 More...
 

Functions

 BT_DECLARE_ALIGNED_ALLOCATOR ()
 
 btScaledBvhTriangleMeshShape (btBvhTriangleMeshShape *childShape, const btVector3 &localScaling)
 
virtual ~btScaledBvhTriangleMeshShape ()
 
virtual void getAabb (const btTransform &t, btVector3 &aabbMin, btVector3 &aabbMax) const
 getAabb returns the axis aligned bounding box in the coordinate frame of the given transform t.
 
virtual void setLocalScaling (const btVector3 &scaling)
 in case we receive negative scaling
 
virtual const btVector3getLocalScaling () const
 
virtual void calculateLocalInertia (btScalar mass, btVector3 &inertia) const
 CollisionShape Interface.
 
virtual void processAllTriangles (btTriangleCallback *callback, const btVector3 &aabbMin, const btVector3 &aabbMax) const
 
btBvhTriangleMeshShapegetChildShape ()
 
virtual const char * getName () const
 
virtual int calculateSerializeBufferSize () const
 
virtual const char * serialize (void *dataBuffer, btSerializer *serializer) const
 fills the dataBuffer and returns the struct name (and 0 on failure)
 

Variables

btScaledBvhTriangleMeshShape __pad0__
 
btBvhTriangleMeshShapem_bvhTriMeshShape
 

Function Documentation

◆ BT_DECLARE_ALIGNED_ALLOCATOR()

BT_DECLARE_ALIGNED_ALLOCATOR ( )

◆ btScaledBvhTriangleMeshShape()

◆ calculateLocalInertia()

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

CollisionShape Interface.

Definition at line 54 of file btConeShape.h.

◆ calculateSerializeBufferSize()

virtual int calculateSerializeBufferSize ( ) const
virtual

◆ getAabb()

virtual void getAabb ( const btTransform & t,
btVector3 & aabbMin,
btVector3 & aabbMax ) const
virtual

getAabb returns the axis aligned bounding box in the coordinate frame of the given transform t.

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

getAabb returns the axis aligned bounding box in the coordinate frame of the given transform t.

Definition at line 54 of file btCapsuleShape.h.

◆ getChildShape()

btBvhTriangleMeshShape * getChildShape ( )

Definition at line 44 of file btScaledBvhTriangleMeshShape.h.

References m_bvhTriMeshShape.

◆ getLocalScaling()

virtual const btVector3 & getLocalScaling ( ) const
virtual

Definition at line 126 of file btCompoundShape.h.

◆ getName()

virtual const char * getName ( ) const
virtual

Definition at line 55 of file btScaledBvhTriangleMeshShape.h.

◆ processAllTriangles()

virtual void processAllTriangles ( btTriangleCallback * callback,
const btVector3 & aabbMin,
const btVector3 & aabbMax ) const
virtual

Definition at line 57 of file btEmptyShape.h.

◆ serialize()

virtual const char * serialize ( void * dataBuffer,
btSerializer * serializer ) const
virtual

fills the dataBuffer and returns the struct name (and 0 on failure)

◆ setLocalScaling()

virtual void setLocalScaling ( const btVector3 & scaling)
virtual

in case we receive negative scaling

Definition at line 120 of file btBox2dShape.h.

◆ ~btScaledBvhTriangleMeshShape()

btScaledBvhTriangleMeshShape::~btScaledBvhTriangleMeshShape ( )
virtual

Definition at line 24 of file btScaledBvhTriangleMeshShape.cpp.

Variable Documentation

◆ __pad0__

The btScaledBvhTriangleMeshShape allows to instance a scaled version of an existing btBvhTriangleMeshShape. Note that each btBvhTriangleMeshShape still can have its own local scaling, independent from this btScaledBvhTriangleMeshShape 'localScaling'

Definition at line 24 of file btScaledBvhTriangleMeshShape.h.

◆ m_bvhTriMeshShape

btBvhTriangleMeshShape* m_bvhTriMeshShape

Definition at line 28 of file btScaledBvhTriangleMeshShape.h.

Referenced by getChildShape().