nape.phys.Interactor

type
class
subclasses
nape.phys.Body, nape.phys.Compound, nape.shape.Shape

Instance Properties

readonly var castBody : Null<Body>

Fast equivalent to cast(interactor, Body)

readonly var castCompound : Null<Compound>

Fast equivalent to cast(interactor, Compound)

readonly var castShape : Null<nape.shape.Shape>

Fast equivalent to cast(interactor, Shape)

readonly var cbTypes : nape.callbacks.CbTypeList = []

Set of CbType's assigned to this Interactor.

var group : Null<nape.dynamics.InteractionGroup> = null

InteractionGroup assigned to this Interactor.

readonly var id : Int

Unique id of this Interactor.

readonly var userData : Dynamic<Dynamic> = {}

+ Dynamic object for user to store additional data.

Instance Methods

inline function isBody():Bool

+ Fast equivalent to Std.is(interactor, Body)

inline function isCompound():Bool

+ Fast equivalent to Std.is(interactor, Compound)

inline function isShape():Bool

+ Fast equivalent to Std.is(interactor, Shape)