Xors3d Engine
Contacts

Functions

int xEntityCountContacts (Entity *entity)
 Returns the number of contacts of the entity's body.
Entity * xEntityGetContact (Entity *entity, int index)
 Returns an entity which has a contact with a given entity.
float xEntityGetContactDistance (Entity *entity, int index)
 Returns the distance of a particular contact.
float xEntityGetContactImpulse (Entity *entity, int index)
 Returns a contact impulse of an entity.
float xEntityGetContactNX (Entity *entity, int index)
 Returns the x component of the nornal of a particular contact.
float xEntityGetContactNY (Entity *entity, int index)
 Returns the y component of the nornal of a particular contact.
float xEntityGetContactNZ (Entity *entity, int index)
 Returns the z component of the nornal of a particular contact.
float xEntityGetContactX (Entity *entity, int index)
 Returns the world x coordinate of a particular contact.
float xEntityGetContactY (Entity *entity, int index)
 Returns the world y coordinate of a particular contact.
float xEntityGetContactZ (Entity *entity, int index)
 Returns the world z coordinate of a particular contact.

Function Documentation

int xEntityCountContacts ( Entity *  entity)

Returns the number of contacts of the entity's body.

Parameters:
entityEntity handle
float xEntityGetContactX ( Entity *  entity,
int  index 
)

Returns the world x coordinate of a particular contact.

Parameters:
entityEntity handle
indexIndex of contact in range [0; xCountContacts(entity)-1]
float xEntityGetContactY ( Entity *  entity,
int  index 
)

Returns the world y coordinate of a particular contact.

Parameters:
entityEntity handle
indexIndex of contact in range [0; xCountContacts(entity) - 1]
float xEntityGetContactZ ( Entity *  entity,
int  index 
)

Returns the world z coordinate of a particular contact.

Parameters:
entityEntity handle
indexIndex of contact in range [0; xCountContacts(entity) - 1]
float xEntityGetContactNX ( Entity *  entity,
int  index 
)

Returns the x component of the nornal of a particular contact.

Parameters:
entityEntity handle
indexIndex of contact in range [0; xCountContacts(entity) - 1]
float xEntityGetContactNY ( Entity *  entity,
int  index 
)

Returns the y component of the nornal of a particular contact.

Parameters:
entityEntity handle
indexIndex of contact in range [0; xCountContacts(entity) - 1]
float xEntityGetContactNZ ( Entity *  entity,
int  index 
)

Returns the z component of the nornal of a particular contact.

Parameters:
entityEntity handle
indexIndex of contact in range [0; xCountContacts(entity) - 1]
float 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.

Parameters:
entityEntity handle
indexIndex of contact in range [0; xCountContacts(entity) - 1]
Entity* xEntityGetContact ( Entity *  entity,
int  index 
)

Returns an entity which has a contact with a given entity.

Parameters:
entityEntity handle
indexIndex of contact in range [0; xCountContacts(entity) - 1]
float xEntityGetContactImpulse ( Entity *  entity,
int  index 
)

Returns a contact impulse of an entity.

Parameters:
entityEntity handle
indexIndex of contact in range [0; xCountContacts(entity) - 1]