nape.dynamics.CollisionArbiter

type
class
extends
Arbiter
Arbiter sub type for collision interactions.

Instance Properties hide inherited show inherited

readonly var body1 : nape.phys.Body

inherited from nape.dynamics.Arbiter
+ The first body in Arbiter interaction.

readonly var body2 : nape.phys.Body

inherited from nape.dynamics.Arbiter
+ The second body in Arbiter interaction.

readonly var collisionArbiter : Null<CollisionArbiter>

inherited from nape.dynamics.Arbiter
+ Fast equivalent to casting this object to a CollisionArbiter.

readonly var contacts : ContactList

Set of contact points for the related pairs of shapes.

var dynamicFriction : Float

+ Coeffecient of combined dynamic friction for collision interaction.

var elasticity : Float

+ Coeffecient of combined elasticity for collision interaction.

readonly var fluidArbiter : Null<FluidArbiter>

inherited from nape.dynamics.Arbiter
+ Fast equivalent to casting this object to a FluidArbiter.

readonly var isSleeping : Bool

inherited from nape.dynamics.Arbiter
+ Flag representing arbiter sleep state.

readonly var normal : nape.geom.Vec2

+ Normal of contact for collision interaction.

readonly var radius : Float

+ This radius property describes the sum of the circle's radii for the pair of shapes, with

readonly var referenceEdge1 : Null<nape.shape.Edge>

The reference edge for the collision on the first Polygon

readonly var referenceEdge2 : Null<nape.shape.Edge>

The reference edge for the collision on the second Polygon

var rollingFriction : Float

+ Coeffecient of combined rolling friction for collision interaction.

readonly var shape1 : nape.shape.Shape

inherited from nape.dynamics.Arbiter
+ The first shape in Arbiter interaction.

readonly var shape2 : nape.shape.Shape

inherited from nape.dynamics.Arbiter
+ The second shape in Arbiter interaction.

readonly var state : nape.callbacks.PreFlag

inherited from nape.dynamics.Arbiter
+ The interaction state of this Arbiter.

var staticFriction : Float

+ Coeffecient of combined static friction for collision interaction.

readonly var type : ArbiterType

inherited from nape.dynamics.Arbiter
The type of this Arbiter.

Instance Methods hide inherited show inherited

function firstVertex():Bool

+ In the case that we have a Circle-Polygon collision, then this

isCollisionArbiter():Bool

inherited from nape.dynamics.Arbiter
+ Equivalent to: arb.type == ArbiterType.COLLISION

isFluidArbiter():Bool

inherited from nape.dynamics.Arbiter
+ Equivalent to: arb.type == ArbiterType.FLUID

isSensorArbiter():Bool

inherited from nape.dynamics.Arbiter
+ Equivalent to: arb.type == ArbiterType.SENSOR

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

+ Evaluate normal reactive impulses for collision interaction for a given body.

function rollingImpulse(body:nape.phys.Body = null, freshOnly:Bool = false):Float

+ Evaluate rolling friction impulses for collision interaction.

function secondVertex():Bool

+ Check if colliding Circle hit second vertex of reference edge.

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

+ Evaluate tangent impulses for collision interaction.

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

+ Evaluate total contact impulses for collision interaction.