|
|
@ -7,8 +7,7 @@ import 'package:flutter/material.dart';
|
|
|
|
///
|
|
|
|
///
|
|
|
|
/// [BodyComponent]s with compatible [Layer]s can collide with each other,
|
|
|
|
/// [BodyComponent]s with compatible [Layer]s can collide with each other,
|
|
|
|
/// ignoring others. This compatibility depends on bit masking operation
|
|
|
|
/// ignoring others. This compatibility depends on bit masking operation
|
|
|
|
/// between layers.
|
|
|
|
/// between layers for more information read: https://en.wikipedia.org/wiki/Mask_(computing).
|
|
|
|
/// For more information read: https://en.wikipedia.org/wiki/Mask_(computing).
|
|
|
|
|
|
|
|
/// {@endtemplate}
|
|
|
|
/// {@endtemplate}
|
|
|
|
mixin Layered<T extends Forge2DGame> on BodyComponent<T> {
|
|
|
|
mixin Layered<T extends Forge2DGame> on BodyComponent<T> {
|
|
|
|
Layer _layer = Layer.all;
|
|
|
|
Layer _layer = Layer.all;
|
|
|
|