Blender V2.61 - r43446
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Attributes | Static Protected Attributes

CcdShapeConstructionInfo Class Reference

#include <CcdPhysicsController.h>

List of all members.

Classes

struct  UVco

Public Member Functions

 CcdShapeConstructionInfo ()
 ~CcdShapeConstructionInfo ()
CcdShapeConstructionInfoAddRef ()
int Release ()
bool IsUnused (void)
void AddShape (CcdShapeConstructionInfo *shapeInfo)
btTriangleMeshShapeGetMeshShape (void)
CcdShapeConstructionInfoGetChildShape (int i)
int FindChildShape (CcdShapeConstructionInfo *shapeInfo, void *userData)
bool RemoveChildShape (int i)
bool SetMesh (class RAS_MeshObject *mesh, struct DerivedMesh *dm, bool polytope)
RAS_MeshObjectGetMesh (void)
bool UpdateMesh (class KX_GameObject *gameobj, class RAS_MeshObject *mesh)
bool SetProxy (CcdShapeConstructionInfo *shapeInfo)
CcdShapeConstructionInfoGetProxy (void)
btCollisionShapeCreateBulletShape (btScalar margin, bool useGimpact=false, bool useBvh=true)
void setVertexWeldingThreshold1 (float threshold)

Static Public Member Functions

static CcdShapeConstructionInfoFindMesh (class RAS_MeshObject *mesh, struct DerivedMesh *dm, bool polytope)

Public Attributes

PHY_ShapeType m_shapeType
btScalar m_radius
btScalar m_height
btVector3 m_halfExtend
btTransform m_childTrans
btVector3 m_childScale
void * m_userData
btAlignedObjectArray< btScalarm_vertexArray
std::vector< int > m_polygonIndexArray
std::vector< int > m_triFaceArray
std::vector< UVcom_triFaceUVcoArray

Protected Attributes

int m_refCount
RAS_MeshObjectm_meshObject
btBvhTriangleMeshShape * m_unscaledShape
std::vector
< CcdShapeConstructionInfo * > 
m_shapeArray
bool m_forceReInstance
float m_weldingThreshold1
CcdShapeConstructionInfom_shapeProxy

Static Protected Attributes

static std::map
< RAS_MeshObject
*, CcdShapeConstructionInfo * > 
m_meshShapeMap

Detailed Description

Definition at line 61 of file CcdPhysicsController.h.


Constructor & Destructor Documentation

CcdShapeConstructionInfo::CcdShapeConstructionInfo ( ) [inline]

Definition at line 71 of file CcdPhysicsController.h.

References m_childTrans, and btTransform::setIdentity().

CcdShapeConstructionInfo::~CcdShapeConstructionInfo ( )

Member Function Documentation

CcdShapeConstructionInfo* CcdShapeConstructionInfo::AddRef ( ) [inline]
void CcdShapeConstructionInfo::AddShape ( CcdShapeConstructionInfo shapeInfo)

Definition at line 2150 of file CcdPhysicsController.cpp.

References AddRef(), and m_shapeArray.

btCollisionShape * CcdShapeConstructionInfo::CreateBulletShape ( btScalar  margin,
bool  useGimpact = false,
bool  useBvh = true 
)
int CcdShapeConstructionInfo::FindChildShape ( CcdShapeConstructionInfo shapeInfo,
void *  userData 
) [inline]

Definition at line 122 of file CcdPhysicsController.h.

References i, m_shapeArray, m_shapeProxy, m_shapeType, m_userData, NULL, and PHY_SHAPE_PROXY.

CcdShapeConstructionInfo * CcdShapeConstructionInfo::FindMesh ( class RAS_MeshObject mesh,
struct DerivedMesh dm,
bool  polytope 
) [static]

Definition at line 1389 of file CcdPhysicsController.cpp.

References m_meshShapeMap, and NULL.

CcdShapeConstructionInfo* CcdShapeConstructionInfo::GetChildShape ( int  i) [inline]

Definition at line 115 of file CcdPhysicsController.h.

References m_shapeArray, and NULL.

Referenced by CcdPhysicsEnvironment::rayTest().

RAS_MeshObject* CcdShapeConstructionInfo::GetMesh ( void  ) [inline]

Definition at line 150 of file CcdPhysicsController.h.

References m_meshObject.

Referenced by CcdPhysicsEnvironment::rayTest().

btTriangleMeshShape* CcdShapeConstructionInfo::GetMeshShape ( void  ) [inline]

Definition at line 111 of file CcdPhysicsController.h.

References m_unscaledShape.

Referenced by GetHitTriangle().

CcdShapeConstructionInfo* CcdShapeConstructionInfo::GetProxy ( void  ) [inline]

Definition at line 159 of file CcdPhysicsController.h.

References m_shapeProxy.

bool CcdShapeConstructionInfo::IsUnused ( void  ) [inline]

Definition at line 104 of file CcdPhysicsController.h.

References m_meshObject, m_shapeArray, m_shapeProxy, and NULL.

Referenced by SetMesh(), and SetProxy().

int CcdShapeConstructionInfo::Release ( ) [inline]
bool CcdShapeConstructionInfo::RemoveChildShape ( int  i) [inline]

Definition at line 138 of file CcdPhysicsController.h.

References m_shapeArray.

bool CcdShapeConstructionInfo::SetMesh ( class RAS_MeshObject mesh,
struct DerivedMesh dm,
bool  polytope 
)
bool CcdShapeConstructionInfo::SetProxy ( CcdShapeConstructionInfo shapeInfo)

Definition at line 1994 of file CcdPhysicsController.cpp.

References assert, IsUnused(), m_shapeProxy, m_shapeType, NULL, and PHY_SHAPE_PROXY.

void CcdShapeConstructionInfo::setVertexWeldingThreshold1 ( float  threshold) [inline]

Definition at line 187 of file CcdPhysicsController.h.

References m_weldingThreshold1.

bool CcdShapeConstructionInfo::UpdateMesh ( class KX_GameObject gameobj,
class RAS_MeshObject mesh 
)

Member Data Documentation

Definition at line 172 of file CcdPhysicsController.h.

Definition at line 171 of file CcdPhysicsController.h.

Referenced by CcdShapeConstructionInfo().

Definition at line 199 of file CcdPhysicsController.h.

Referenced by CreateBulletShape(), and UpdateMesh().

Definition at line 170 of file CcdPhysicsController.h.

Referenced by CreateBulletShape().

Definition at line 169 of file CcdPhysicsController.h.

Referenced by CreateBulletShape().

Definition at line 192 of file CcdPhysicsController.h.

Referenced by FindMesh(), SetMesh(), and ~CcdShapeConstructionInfo().

Definition at line 168 of file CcdPhysicsController.h.

Referenced by CreateBulletShape().

Definition at line 193 of file CcdPhysicsController.h.

Referenced by AddRef(), and Release().

Definition at line 181 of file CcdPhysicsController.h.

Referenced by CreateBulletShape(), SetMesh(), and UpdateMesh().

Definition at line 184 of file CcdPhysicsController.h.

Referenced by CcdPhysicsEnvironment::rayTest(), SetMesh(), and UpdateMesh().

btBvhTriangleMeshShape* CcdShapeConstructionInfo::m_unscaledShape [protected]

Definition at line 173 of file CcdPhysicsController.h.

Referenced by FindChildShape().

Definition at line 200 of file CcdPhysicsController.h.

Referenced by CreateBulletShape(), and setVertexWeldingThreshold1().


The documentation for this class was generated from the following files: