class nape.phys.Interactor

Available on all platforms

Instance Fields

var castBody:Null<Body>

Fast equivalent to cast(interactor, Body)

var castCompound:Null<Compound>

Fast equivalent to cast(interactor, Compound)

var castShape:Null<Shape>

Fast equivalent to cast(interactor, Shape)

var cbTypes:CbTypeList

Set of CbType's assigned to this Interactor. * * @default []

var group:Null<InteractionGroup>

InteractionGroup assigned to this Interactor. * * @default null

var id:Int

Unique id of this Interactor.

var userData:DynamicDynamic

Dynamic object for user to store additional data. *

* This object cannot be set, only its dynamically created * properties may be set. In AS3 the type of this property is &#42 *

* This object will be lazily constructed so that until accessed * for the first time, will be null internally. * * @default {}

function new():Void

@private

function isBody():Bool

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

returns

true if this Interactor is a Body.

function isCompound():Bool

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

returns

true if this Interactor is a Compound.

function isShape():Bool

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

returns

true if this Interactor is a Shape.

function toString():String

@private