Inherits MOAILuaObject, and b2ContactListener.
Flags |
MOAIBox2DArbiter.BEGIN |
MOAIBox2DArbiter.END |
MOAIBox2DArbiter.POST_SOLVE |
MOAIBox2DArbiter.PRE_SOLVE |
MOAIBox2DArbiter.ALL |
|
Returns the normal for the contact.
function getContactNormal ( MOAIBox2DArbiter self )
- Parameters
-
- Returns
- number normal.x, number normal.y
Returns the contact points in world space. There can be 0, 1 or 2 points (see box2d manual section 4.11)
function getContactPoints ( MOAIBox2DArbiter self )
- Parameters
-
- Returns
- number p1.x, number p1.y, number p2.x, number p2.y
Returns total normal impulse for contact.
function getNormalImpulse ( MOAIBox2DArbiter self )
- Parameters
-
- Returns
- number impulse
Returns total tangent impulse for contact.
function getTangentImpulse ( MOAIBox2DArbiter self )
- Parameters
-
- Returns
- number impulse
Enabled or disable the contact.
function setContactEnabled ( MOAIBox2DArbiter self, boolean enabled )
- Parameters
-
- Returns
- nil