nape.callbacks.CbType

type
class
Callback Type applied to Interactors and Constraints.

Callback types are ranged over by listeners.

Static Properties

static readonly var ANY_BODY : CbType

+ Default CbType given to all Bodys

static readonly var ANY_COMPOUND : CbType

+ Default CbType given to all Compounds

static readonly var ANY_CONSTRAINT : CbType

+ Default CbType given to all Constraints

static readonly var ANY_SHAPE : CbType

+ Default CbType given to all Shapes

Constructor

function new()
+ Construct a new CbType object.

Instance Properties

readonly var constraints : nape.constraint.ConstraintList

+ List of all Constraints using this CbType.

readonly var id : Int

Unique identifier for this CbType.

readonly var interactors : nape.phys.InteractorList

+ List of all Interactors using this CbType.

readonly var userData : Dynamic<Dynamic> = {}

+ Dynamic object for user to store additional data.

Instance Methods

function excluding(excludes:Dynamic):OptionType

+ Construct OptionType with given excludes.

function including(includes:Dynamic):OptionType

+ Construct OptionType with given extra includes.