igor::iPhysicsCollisionConfig Class Reference

#include <iPhysicsCollisionConfig.h>

Public Member Functions

uint64 getID ()
 
void set (const iPhysicsCollisionConfig *physicsCollisionConfig)
 
void addBox (float32 width, float32 height, float32 depth, const iaMatrixd &offset)
 
void addSphere (float32 radius, const iaMatrixd &offset)
 
void addCone (float32 radius, float32 height, const iaMatrixd &offset)
 
void addCapsule (float32 radius0, float32 radius1, float32 height, const iaMatrixd &offset)
 
void addCylinder (float32 radius0, float32 radius1, float32 height, const iaMatrixd &offset)
 
void addMesh (iMeshPtr mesh, int64 faceAttribute, const iaMatrixd &offset)
 
uint64 getCollisionID ()
 
void finalize (uint64 worldID)
 
bool isFinalized ()
 

Static Public Attributes

static const iaID64 INVALID_COLLISIONCONFIG_ID = IGOR_INVALID_ID
 

Friends

class iTaskPrepareCollision
 
class iPhysics
 

Detailed Description

collision configuration is to be finalized by iPhysics or iTaskPrepareCollision

Member Function Documentation

◆ addBox()

void igor::iPhysicsCollisionConfig::addBox ( float32  width,
float32  height,
float32  depth,
const iaMatrixd offset 
)

adds box

Parameters
widthwidth of box
heightheight of box
depthdepth of box
offsetrelative position

◆ addCapsule()

void igor::iPhysicsCollisionConfig::addCapsule ( float32  radius0,
float32  radius1,
float32  height,
const iaMatrixd offset 
)

adds capsule

Parameters
radiusradius of capsule
heightheight of capsule
offsetrelative position

◆ addCone()

void igor::iPhysicsCollisionConfig::addCone ( float32  radius,
float32  height,
const iaMatrixd offset 
)

adds cone

Parameters
radiusradius of cone
heightheight of cone
offsetrelative position

◆ addCylinder()

void igor::iPhysicsCollisionConfig::addCylinder ( float32  radius0,
float32  radius1,
float32  height,
const iaMatrixd offset 
)

adds cylinder

Parameters
radiusradius of cylinder
heightheight of cylinder
offsetrelative position

◆ addMesh()

void igor::iPhysicsCollisionConfig::addMesh ( iMeshPtr  mesh,
int64  faceAttribute,
const iaMatrixd offset 
)

set up mesh for physics mesh

Parameters
meshthe mesh to make a physics collision from
faceAttributethe face attribute for the whole mesh
offsetoff the mesh collision object

◆ addSphere()

void igor::iPhysicsCollisionConfig::addSphere ( float32  radius,
const iaMatrixd offset 
)

adds sphere

Parameters
radiusradius of sphere
offsetrelative position

◆ finalize()

void igor::iPhysicsCollisionConfig::finalize ( uint64  worldID)

creates the collisions

◆ getCollisionID()

uint64 igor::iPhysicsCollisionConfig::getCollisionID ( )
Returns
resulting collision ID

returns INVALID_PHYSICSCOLLISION_ID if collision config was not finalized yet

◆ getID()

uint64 igor::iPhysicsCollisionConfig::getID ( )
Returns
collision config id

◆ isFinalized()

bool igor::iPhysicsCollisionConfig::isFinalized ( )
Returns
true if collision is finalized

◆ set()

void igor::iPhysicsCollisionConfig::set ( const iPhysicsCollisionConfig physicsCollisionConfig)

copy data from other config

Parameters
physicsCollisionConfigsource to copy data from

Friends And Related Function Documentation

◆ iPhysics

friend class iPhysics
friend

◆ iTaskPrepareCollision

friend class iTaskPrepareCollision
friend

Member Data Documentation

◆ INVALID_COLLISIONCONFIG_ID

const iaID64 igor::iPhysicsCollisionConfig::INVALID_COLLISIONCONFIG_ID = IGOR_INVALID_ID
static

definition of invalid collision config id


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