ScummVM API documentation
hpl::cCollideShapeNewton Class Reference
Inheritance diagram for hpl::cCollideShapeNewton:
hpl::iCollideShape

Public Member Functions

 cCollideShapeNewton (eCollideShapeType aType, const cVector3f &avSize, cMatrixf *apOffsetMtx, NewtonWorld *apNewtonWorld, iPhysicsWorld *apWorld)
 
iCollideShape * GetSubShape (int alIdx)
 
int GetSubShapeNum ()
 
cVector3f GetInertia (float afMass)
 
void CreateFromShapeVec (tCollideShapeVec &avShapes)
 
void CreateFromVertices (const unsigned int *apIndexArray, int alIndexNum, const float *apVertexArray, int alVtxStride, int alVtxNum)
 
NewtonCollision * GetNewtonCollision ()
 
- Public Member Functions inherited from hpl::iCollideShape
 iCollideShape (iPhysicsWorld *apWorld)
 
virtual iCollideShape * GetSubShape (int alIdx)=0
 
virtual int GetSubShapeNum ()=0
 
cVector3f GetSize ()
 
float GetRadius ()
 
float GetHeight ()
 
float GetWidth ()
 
float GetDepth ()
 
const cMatrixf & GetOffset ()
 
eCollideShapeType GetType ()
 
void IncUserCount ()
 
void DecUserCount ()
 
bool HasUsers ()
 
int GetUserCount ()
 
float GetVolume ()
 
cBoundingVolume & GetBoundingVolume ()
 

Additional Inherited Members

- Protected Attributes inherited from hpl::iCollideShape
cVector3f mvSize
 
eCollideShapeType mType
 
cMatrixf m_mtxOffset
 
int mlUserCount
 
iPhysicsWorld * mpWorld
 
float mfVolume
 
cBoundingVolume mBoundingVolume
 

Member Function Documentation

◆ GetSubShape()

iCollideShape * hpl::cCollideShapeNewton::GetSubShape ( int  alIdx)
virtual

Implements hpl::iCollideShape.

◆ GetSubShapeNum()

int hpl::cCollideShapeNewton::GetSubShapeNum ( )
virtual

Implements hpl::iCollideShape.


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