Interactor

nape.phys.Interactor (Class) → Body, Compound, nape.shape.Shape

Static Members

nape
zpp_internalAlloc: Bool

@private

Instance Members

@private


nape
id: Int

Unique id of this Interactor.


nape
userData: Dynamic

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 {}


nape
castShape: Null<nape.shape.Shape>

Fast equivalent to cast(interactor, Shape)


nape
castBody: Null<Body>

Fast equivalent to cast(interactor, Body)


nape
castCompound: Null<Compound>

Fast equivalent to cast(interactor, Compound)


InteractionGroup assigned to this Interactor.

@default null


Set of CbType's assigned to this Interactor.

@default []


nape
isShape(): Bool

Fast equivalent to Std.isOfType(interactor, Shape)

Returns Description
Bool true if this Interactor is a Shape.

nape
isBody(): Bool

Fast equivalent to Std.isOfType(interactor, Body)

Returns Description
Bool true if this Interactor is a Body.

nape
isCompound(): Bool

Fast equivalent to Std.isOfType(interactor, Compound)

Returns Description
Bool true if this Interactor is a Compound.

nape
toString(): String

@private

Returns
String

nape
new(): Void

Private Members