doc: changed Layered doc

pull/40/head
RuiAlonso 4 years ago
parent ae934a6526
commit 2d9b3c0e15

@ -5,8 +5,10 @@ import 'package:flutter/material.dart';
/// Modifies maskBits and categoryBits of all the [BodyComponent]'s [Fixture]s /// Modifies maskBits and categoryBits of all the [BodyComponent]'s [Fixture]s
/// to specify what other [BodyComponent]s it can collide with. /// to specify what other [BodyComponent]s it can collide with.
/// ///
/// [BodyComponent]s with the same [Layer] can collide with each other, ignoring /// [BodyComponent]s with compatible [Layer]s can collide with each other,
/// those with different [Layer]s. /// ignoring others. This compatibility depends on bit masking operation
/// between layers.
/// 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;

Loading…
Cancel
Save