![]() |
Xors3d Engine
|
Functions | |
BBDECL int BBCALL | xEntityCountContacts (Entity *entity) |
Returns the number of contacts of the entity's body. | |
BBDECL Entity *BBCALL | xEntityGetContact (Entity *entity, int index) |
Returns an entity which has a contact with a given entity. | |
BBDECL float BBCALL | xEntityGetContactDistance (Entity *entity, int index) |
Returns the distance of a particular contact. | |
BBDECL float BBCALL | xEntityGetContactImpulse (Entity *entity, int index) |
Returns a contact impulse of an entity. | |
BBDECL float BBCALL | xEntityGetContactNX (Entity *entity, int index) |
Returns the x component of the nornal of a particular contact. | |
BBDECL float BBCALL | xEntityGetContactNY (Entity *entity, int index) |
Returns the y component of the nornal of a particular contact. | |
BBDECL float BBCALL | xEntityGetContactNZ (Entity *entity, int index) |
Returns the z component of the nornal of a particular contact. | |
BBDECL float BBCALL | xEntityGetContactX (Entity *entity, int index) |
Returns the world x coordinate of a particular contact. | |
BBDECL float BBCALL | xEntityGetContactY (Entity *entity, int index) |
Returns the world y coordinate of a particular contact. | |
BBDECL float BBCALL | xEntityGetContactZ (Entity *entity, int index) |
Returns the world z coordinate of a particular contact. |
BBDECL int BBCALL xEntityCountContacts | ( | Entity * | entity | ) |
Returns the number of contacts of the entity's body.
entity | Entity handle |
BBDECL float BBCALL xEntityGetContactX | ( | Entity * | entity, |
int | index | ||
) |
Returns the world x coordinate of a particular contact.
entity | Entity handle |
index | Index of contact in range [0; xCountContacts(entity)-1] |
BBDECL float BBCALL xEntityGetContactY | ( | Entity * | entity, |
int | index | ||
) |
Returns the world y coordinate of a particular contact.
entity | Entity handle |
index | Index of contact in range [0; xCountContacts(entity) - 1] |
BBDECL float BBCALL xEntityGetContactZ | ( | Entity * | entity, |
int | index | ||
) |
Returns the world z coordinate of a particular contact.
entity | Entity handle |
index | Index of contact in range [0; xCountContacts(entity) - 1] |
BBDECL float BBCALL xEntityGetContactNX | ( | Entity * | entity, |
int | index | ||
) |
Returns the x component of the nornal of a particular contact.
entity | Entity handle |
index | Index of contact in range [0; xCountContacts(entity) - 1] |
BBDECL float BBCALL xEntityGetContactNY | ( | Entity * | entity, |
int | index | ||
) |
Returns the y component of the nornal of a particular contact.
entity | Entity handle |
index | Index of contact in range [0; xCountContacts(entity) - 1] |
BBDECL float BBCALL xEntityGetContactNZ | ( | Entity * | entity, |
int | index | ||
) |
Returns the z component of the nornal of a particular contact.
entity | Entity handle |
index | Index of contact in range [0; xCountContacts(entity) - 1] |
BBDECL float BBCALL xEntityGetContactDistance | ( | Entity * | entity, |
int | index | ||
) |
Returns the distance of a particular contact.
Sometimes you need to ignore the contacts whose distance is less than some threshold.
entity | Entity handle |
index | Index of contact in range [0; xCountContacts(entity) - 1] |
BBDECL Entity* BBCALL xEntityGetContact | ( | Entity * | entity, |
int | index | ||
) |
Returns an entity which has a contact with a given entity.
entity | Entity handle |
index | Index of contact in range [0; xCountContacts(entity) - 1] |
BBDECL float BBCALL xEntityGetContactImpulse | ( | Entity * | entity, |
int | index | ||
) |
Returns a contact impulse of an entity.
entity | Entity handle |
index | Index of contact in range [0; xCountContacts(entity) - 1] |