ShapeFilter class
Fast collision filtering type that is used to determine if two objects collide before calling collision or query callbacks.
Constructors
- ShapeFilter({required int group, required int categories, required int mask})
Properties
- categories → int
-
A bitmask of user definable categories that this object belongs to.
The category/mask combinations of both objects in a collision must agree for a collision to occur.
no setter
- group → int
-
Two objects with the same non-zero group value do not collide.
This is generally used to group objects in a composite object together to disable self collisions.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- mask → int
-
A bitmask of user definable category types that this object object collides with.
The category/mask combinations of both objects in a collision must agree for a collision to occur.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
toPointer
→ Pointer<
cpShapeFilter> -
no setter
Methods
-
close(
) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited