16#ifndef BT_SCALED_BVH_TRIANGLE_MESH_SHAPE_H
17#define BT_SCALED_BVH_TRIANGLE_MESH_SHAPE_H
37 virtual void getAabb(
const btTransform& t, btVector3& aabbMin, btVector3& aabbMax)
const;
55 virtual const char*
getName()
const {
return "SCALEDBVHTRIANGLEMESH"; }
71SIMD_FORCE_INLINE int btScaledBvhTriangleMeshShape::calculateSerializeBufferSize()
const
83 return "btScaledTriangleMeshShapeData";
@ SCALED_TRIANGLE_MESH_SHAPE_PROXYTYPE
btBvhTriangleMeshShape(btStridingMeshInterface *meshInterface, bool useQuantizedAabbCompression, bool buildBvh=true)
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...
#define ATTRIBUTE_ALIGNED16(a)
#define SIMD_FORCE_INLINE
virtual void setLocalScaling(const btVector3 &scaling)
in case we receive negative scaling
BT_DECLARE_ALIGNED_ALLOCATOR()
virtual int calculateSerializeBufferSize() const
btBvhTriangleMeshShape * m_bvhTriMeshShape
virtual const char * getName() const
virtual void calculateLocalInertia(btScalar mass, btVector3 &inertia) const
CollisionShape Interface.
virtual void processAllTriangles(btTriangleCallback *callback, const btVector3 &aabbMin, const btVector3 &aabbMax) const
virtual ~btScaledBvhTriangleMeshShape()
btScaledBvhTriangleMeshShape(btBvhTriangleMeshShape *childShape, const btVector3 &localScaling)
btBvhTriangleMeshShape * getChildShape()
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 const btVector3 & getLocalScaling() const
virtual const char * serialize(void *dataBuffer, btSerializer *serializer) const
fills the dataBuffer and returns the struct name (and 0 on failure)
DEGForeachIDComponentCallback callback
do not change those serialization structures, it requires an updated sBulletDNAstr/sBulletDNAstr64
btTriangleMeshShapeData m_trimeshShapeData
btVector3FloatData m_localScaling
do not change those serialization structures, it requires an updated sBulletDNAstr/sBulletDNAstr64
btCollisionShapeData m_collisionShapeData