Live list of all constraints currently tagged with this CbType. Read-only.
Unique numeric identifier for this CbType instance.
Live list of all interactors (bodies/shapes/compounds) currently tagged
with this CbType. Read-only.
Arbitrary user data attached to this CbType.
Lazily initialized to {} on first access. Use to store application-level
metadata associated with the type.
StaticANY_StaticANY_StaticANY_Built-in type automatically assigned to every Constraint.
Note: Constraints do NOT automatically carry ANY_CONSTRAINT in their
cbTypes list — you must add a custom CbType manually if you want to filter
constraint events.
StaticANY_Creates a new OptionType that includes this type but excludes excludes.
Shorthand for new OptionType(this).excluding(excludes).
CbType or OptionType to reject.
Creates a new OptionType that includes this type and also includes.
Shorthand for new OptionType(this).including(includes).
Additional CbType or OptionType to require.
Callback type tag — used to label bodies, shapes, and constraints so that listeners can selectively respond to interactions involving specific objects.
Objects can carry multiple
CbTypes (via theircbTypeslist). Listeners match against those types using OptionType include/exclude filters, or using the built-in singletons (ANY_BODY,ANY_SHAPE, etc.).Example
Converted from nape-compiled.js lines 689–770.