7 #ifndef CAFU_CLIPSYS_COLLISION_MODEL_STATIC_BULLET_ADAPTER_HPP_INCLUDED
8 #define CAFU_CLIPSYS_COLLISION_MODEL_STATIC_BULLET_ADAPTER_HPP_INCLUDED
10 #include "CollisionModel_static.hpp"
11 #include "BulletCollision/CollisionShapes/btConcaveShape.h"
34 void getAabb(
const btTransform& t, btVector3& aabbMin, btVector3& aabbMax)
const override;
35 void setLocalScaling(
const btVector3& scaling)
override { m_LocalScale = scaling; }
36 const btVector3& getLocalScaling()
const override {
return m_LocalScale; }
37 void calculateLocalInertia(btScalar mass, btVector3& inertia)
const override;
38 const char* getName()
const override {
return "CollisionModelStaticT::BulletAdapterT"; }
41 void processAllTriangles(btTriangleCallback* callback,
const btVector3& aabbMin,
const btVector3& aabbMax)
const override;
46 btVector3 conv(
const Vector3dT& v)
const {
return btVector3(btScalar(v.
x), btScalar(v.
y), btScalar(v.
z)); }
47 btVector3 conv(
const Vector3fT& v)
const {
return btVector3(btScalar(v.
x), btScalar(v.
y), btScalar(v.
z)); }
48 void ProcessTriangles(
NodeT* Node, btTriangleCallback* callback,
const BoundingBox3dT& BB)
const;
51 btVector3 m_LocalScale;
BulletAdapterT(const CollisionModelStaticT &CollMdl)
Constructor.
Definition: CollisionModel_static_BulletAdapter.cpp:18
T y
The y-component of this vector.
Definition: Vector3.hpp:41
This class provides an adapter for CollisionModelStaticT instances to be used as btConcaveShape insta...
Definition: CollisionModel_static_BulletAdapter.hpp:25
This class represents a static collision model.
Definition: CollisionModel_static.hpp:25
T z
The z-component of this vector.
Definition: Vector3.hpp:42
T x
The x-component of this vector.
Definition: Vector3.hpp:40
Definition: CollisionModel_static.hpp:136