Collision group bits (default 1).
Collision mask bits (default -1, all bits set).
Sensor group bits (default 1).
Sensor mask bits (default -1, all bits set).
Fluid group bits (default 1).
Fluid mask bits (default -1, all bits set).
Bit-mask identifying which collision group(s) this shape belongs to.
Bit-mask of collision groups this shape will collide with.
Bit-mask identifying which fluid group(s) this shape belongs to.
Bit-mask of fluid groups this shape will interact with as a fluid.
Bit-mask identifying which sensor group(s) this shape belongs to.
Bit-mask of sensor groups this shape will sense.
Read-only list of shapes currently using this filter.
Arbitrary user data attached to this filter.
Create a copy of this filter with the same group/mask values.
Test whether two filters allow collision interaction.
The other filter to test against.
true if the two filters' group/mask bits permit collision.
Test whether two filters allow fluid interaction.
The other filter to test against.
true if the two filters' group/mask bits permit fluid interaction.
Test whether two filters allow sensor interaction.
The other filter to test against.
true if the two filters' group/mask bits permit sensing.
Return a hex-formatted string representation of all group/mask pairs.
Bit-mask based interaction filter for controlling which shapes collide, sense, or interact as fluids.
Internally wraps a ZPP_InteractionFilter and is registered as the public
nape.dynamics.InteractionFilterclass in the compiled namespace.Converted from nape-compiled.js lines 14361–14640.