TalanSoft Toolkits  201707
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Groups Pages
Public Member Functions | List of all members
iCollide Struct Referenceabstract
Inheritance diagram for iCollide:
iUnknown

Detailed Description

Collide interface.

Public Member Functions

virtual iCollideShapeCreateBox (const sVec3f &avSize)=0
 Creates a new box shape. More...
 
virtual iCollideShapeCreateSphere (tF32 afRadius)=0
 Creates a new sphere shape. More...
 
virtual iCollideShapeCreateCylinder (tF32 afRadius, tF32 afH)=0
 Creates a new cylinder shape. More...
 
virtual iCollideShapeCreateMesh (iFile *apVertices, tU32 anNumVertices, tU32 anVertexStride, iFile *apIndices, tU32 anNumIndices, tU32 anBaseVertexIndex, tCollideMeshFlags aFlags)=0
 Creates a new mesh shape. More...
 
virtual iCollideShapeCreateCompound (tIUnknownCVec *apShapes, tMatrixfCVec *apOffsets)=0
 Creates a new compound shape. More...
 
virtual iCollideQueryCreateQuery ()=0
 Creates a new query. More...
 
virtual iCollideResponseTableCreateResponseTable ()=0
 Creates a new response table. More...
 
virtual ni::iCollideResponseSinkGetEmptyFirstResponseSink () const =0
 Get the dummy first response sink. {Property}. More...
 
virtual ni::iCollideResponseSinkGetEmptyLastResponseSink () const =0
 Get the dummy last response sink. {Property}. More...
 
virtual iCollideSceneCreateCollideScene ()=0
 Creates a new collide scene. More...
 
virtual iCollideQueryTrianglesCreateQueryTriangles ()=0
 Creates a new triangles query object. More...
 
virtual iDynamicsSceneCreateDynamicsScene ()=0
 Creates a new dynamics scene. More...
 
virtual iCollideCharacterCreateCharacter (iHString *ahspCollideClass)=0
 Creates a new collide character. More...
 
- Public Member Functions inherited from iUnknown
virtual tBool IsOK () const =0
 Check if the object is valid. More...
 
virtual tI32 AddRef ()=0
 Signal that one more reference of the object has been created. More...
 
virtual tI32 Release ()=0
 Release a reference of the object. More...
 
virtual void DeleteThis ()=0
 Bypass any reference counting and delete this object. More...
 
virtual void Invalidate ()=0
 Invalidate the object. More...
 
virtual iUnknownQueryInterface (const tUUID &aIID)=0
 Query an interface. More...
 
virtual void ListInterfaces (iMutableCollection *apLst, tU32 anFlags) const =0
 Fill a UUID list containing the UUIDs of the implemented interfaces. More...
 
virtual tI32 SetNumRefs (tI32 anNumRefs)=0
 Set the reference counter directly. More...
 
virtual tI32 GetNumRefs () const =0
 Get the number of references to this object. More...
 

Member Function Documentation

virtual iCollideShape* CreateBox ( const sVec3f avSize)
pure virtual

Creates a new box shape.

virtual iCollideShape* CreateSphere ( tF32  afRadius)
pure virtual

Creates a new sphere shape.

virtual iCollideShape* CreateCylinder ( tF32  afRadius,
tF32  afH 
)
pure virtual

Creates a new cylinder shape.

virtual iCollideShape* CreateMesh ( iFile apVertices,
tU32  anNumVertices,
tU32  anVertexStride,
iFile apIndices,
tU32  anNumIndices,
tU32  anBaseVertexIndex,
tCollideMeshFlags  aFlags 
)
pure virtual

Creates a new mesh shape.

Remarks
If no valid index array is specified the vertex array is assumed to be a triangle list.
virtual iCollideShape* CreateCompound ( tIUnknownCVec apShapes,
tMatrixfCVec apOffsets 
)
pure virtual

Creates a new compound shape.

virtual iCollideQuery* CreateQuery ( )
pure virtual

Creates a new query.

virtual iCollideResponseTable* CreateResponseTable ( )
pure virtual

Creates a new response table.

virtual ni::iCollideResponseSink* GetEmptyFirstResponseSink ( ) const
pure virtual

Get the dummy first response sink. {Property}.

Remarks
The dummy first response sink interupts the collision tests at the first collision found.
virtual ni::iCollideResponseSink* GetEmptyLastResponseSink ( ) const
pure virtual

Get the dummy last response sink. {Property}.

Remarks
The dummy last response sink does not interrupt the collision tests so that the last collision found is in the collide query.
virtual iCollideScene* CreateCollideScene ( )
pure virtual

Creates a new collide scene.

virtual iCollideQueryTriangles* CreateQueryTriangles ( )
pure virtual

Creates a new triangles query object.

virtual iDynamicsScene* CreateDynamicsScene ( )
pure virtual

Creates a new dynamics scene.

Remarks
The dynamics scene derives from ni::iCollideScene that should be used to add/remove collision objects as well as dynamics objects.
virtual iCollideCharacter* CreateCharacter ( iHString ahspCollideClass)
pure virtual

Creates a new collide character.