collisionType property
Whether the hitbox should:
- CollisionType.active - actively collide with other hitboxes.
- CollisionType.passive - passively collide with other hitboxes (only collide with hitboxes that are active, but not other passive ones).
- CollisionType.inactive - not collide with any other hitboxes.
Implementation
@override
CollisionType get collisionType => collisionTypeNotifier.value;
set
collisionType
(CollisionType type)
Implementation
set collisionType(CollisionType type) {
if (collisionTypeNotifier.value == type) {
return;
}
collisionTypeNotifier.value = type;
}