nape.dynamics.Arbiter

type
class
subclasses
nape.dynamics.CollisionArbiter, nape.dynamics.FluidArbiter
Arbiter representing the state of an interaction between two Bodys.

These objects are automatically reused, and you should not keep your own references to them.

Instance Properties

readonly var body1 : nape.phys.Body

+ The first body in Arbiter interaction.

readonly var body2 : nape.phys.Body

+ The second body in Arbiter interaction.

readonly var collisionArbiter : Null<CollisionArbiter>

+ Fast equivalent to casting this object to a CollisionArbiter.

readonly var fluidArbiter : Null<FluidArbiter>

+ Fast equivalent to casting this object to a FluidArbiter.

readonly var isSleeping : Bool

+ Flag representing arbiter sleep state.

readonly var shape1 : nape.shape.Shape

+ The first shape in Arbiter interaction.

readonly var shape2 : nape.shape.Shape

+ The second shape in Arbiter interaction.

readonly var state : nape.callbacks.PreFlag

+ The interaction state of this Arbiter.

readonly var type : ArbiterType

The type of this Arbiter.

Instance Methods

inline function isCollisionArbiter():Bool

+ Equivalent to: arb.type == ArbiterType.COLLISION

inline function isFluidArbiter():Bool

+ Equivalent to: arb.type == ArbiterType.FLUID

inline function isSensorArbiter():Bool

+ Equivalent to: arb.type == ArbiterType.SENSOR

function totalImpulse(body:nape.phys.Body = null, freshOnly:Bool = false):nape.geom.Vec3

+ Evaluate the total impulse this arbiter applied to the given body for