#include <iPhysicsCollisionConfig.h>
|
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 () |
|
collision configuration is to be finalized by iPhysics or iTaskPrepareCollision
◆ addBox()
adds box
- Parameters
-
width | width of box |
height | height of box |
depth | depth of box |
offset | relative position |
◆ addCapsule()
adds capsule
- Parameters
-
radius | radius of capsule |
height | height of capsule |
offset | relative position |
◆ addCone()
adds cone
- Parameters
-
radius | radius of cone |
height | height of cone |
offset | relative position |
◆ addCylinder()
adds cylinder
- Parameters
-
radius | radius of cylinder |
height | height of cylinder |
offset | relative position |
◆ addMesh()
set up mesh for physics mesh
- Parameters
-
mesh | the mesh to make a physics collision from |
faceAttribute | the face attribute for the whole mesh |
offset | off the mesh collision object |
◆ addSphere()
void igor::iPhysicsCollisionConfig::addSphere |
( |
float32 |
radius, |
|
|
const iaMatrixd & |
offset |
|
) |
| |
adds sphere
- Parameters
-
radius | radius of sphere |
offset | relative position |
◆ finalize()
void igor::iPhysicsCollisionConfig::finalize |
( |
uint64 |
worldID | ) |
|
◆ 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()
copy data from other config
- Parameters
-
physicsCollisionConfig | source to copy data from |
◆ iPhysics
◆ iTaskPrepareCollision
◆ INVALID_COLLISIONCONFIG_ID
definition of invalid collision config id
The documentation for this class was generated from the following files: