Moai SDK  1.5 revision 1 (MoaiEdition)
MOAICpArbiter Class Reference

Inherits MOAILuaObject.

List of all members.

Function List

  countContacts
  getContactDepth
  getContactNormal
  getContactPoint
  getTotalImpulse
  getTotalImpulseWithFriction
  isFirstContact

Function Documentation

Returns the number of contacts occurring with this arbiter.


function countContacts ( MOAICpArbiter self )
Parameters:
self ( MOAICpArbiter )
Returns:
count ( number )

Returns the depth of a contact point between two objects.


function getContactDepth ( MOAICpArbiter self, number id )
Parameters:
self ( MOAICpArbiter )
id ( number ) The ID of the contact.
Returns:
depth ( number )

Returns the normal of a contact point between two objects.


function getContactNormal ( MOAICpArbiter self, number id )
Parameters:
self ( MOAICpArbiter )
id ( number ) The ID of the contact.
Returns:
x ( boolean ), y ( boolean )

Returns the position of a contact point between two objects.


function getContactPoint ( MOAICpArbiter self, number id )
Parameters:
self ( MOAICpArbiter )
id ( number ) The ID of the contact.
Returns:
x ( boolean ), y ( boolean )

Returns the total impulse of a contact point between two objects.


function getTotalImpulse ( MOAICpArbiter self )
Parameters:
self ( MOAICpArbiter )
Returns:
x ( boolean ), y ( boolean )

Returns the total impulse of a contact point between two objects, also including frictional forces.


function getTotalImpulseWithFriction ( MOAICpArbiter self )
Parameters:
self ( MOAICpArbiter )
Returns:
x ( boolean ), y ( boolean )

Returns whether this is the first time that these two objects have contacted.


function isFirstContact ( MOAICpArbiter self )
Parameters:
self ( MOAICpArbiter )
Returns:
first ( boolean )