Moai SDK
1.5 revision 1 (MoaiEdition)
|
Inherits MOAILuaObject.
Function List | |
countContacts | |
getContactDepth | |
getContactNormal | |
getContactPoint | |
getTotalImpulse | |
getTotalImpulseWithFriction | |
isFirstContact |
Returns the number of contacts occurring with this arbiter.
function countContacts ( MOAICpArbiter self )
self | ( MOAICpArbiter ) |
Returns the depth of a contact point between two objects.
function getContactDepth ( MOAICpArbiter self, number id )
self | ( MOAICpArbiter ) |
id | ( number ) The ID of the contact. |
Returns the normal of a contact point between two objects.
function getContactNormal ( MOAICpArbiter self, number id )
self | ( MOAICpArbiter ) |
id | ( number ) The ID of the contact. |
Returns the position of a contact point between two objects.
function getContactPoint ( MOAICpArbiter self, number id )
self | ( MOAICpArbiter ) |
id | ( number ) The ID of the contact. |
Returns the total impulse of a contact point between two objects.
function getTotalImpulse ( MOAICpArbiter self )
self | ( MOAICpArbiter ) |
Returns the total impulse of a contact point between two objects, also including frictional forces.
function getTotalImpulseWithFriction ( MOAICpArbiter self )
self | ( MOAICpArbiter ) |
Returns whether this is the first time that these two objects have contacted.
function isFirstContact ( MOAICpArbiter self )
self | ( MOAICpArbiter ) |