Moai SDK  1.5 revision 1 (MoaiEdition)
MOAIBox2DArbiter Class Reference

Inherits MOAILuaObject.

List of all members.

Function List

  getContactNormal
  getNormalImpulse
  getTangentImpulse
  setContactEnabled

Function Documentation

Returns the normal for the contact.


function getContactNormal ( MOAIBox2DArbiter self )
Parameters:
self ( MOAIBox2DArbiter )
Returns:
normal.x ( number ), normal.y ( number )

Returns total normal impulse for contact.


function getNormalImpulse ( MOAIBox2DArbiter self )
Parameters:
self ( MOAIBox2DArbiter )
Returns:
impulse ( number )

Returns total tangent impulse for contact.


function getTangentImpulse ( MOAIBox2DArbiter self )
Parameters:
self ( MOAIBox2DArbiter )
Returns:
impulse ( number )

Enabled or disable the contact.


function setContactEnabled ( MOAIBox2DArbiter self, boolean enabled )
Parameters:
self ( MOAIBox2DArbiter )
enabled ( boolean )
Returns:
nil