From 2d9b3c0e15df9ab4a365a85944b3a453e5ab4edd Mon Sep 17 00:00:00 2001 From: RuiAlonso Date: Fri, 18 Mar 2022 12:24:00 +0100 Subject: [PATCH] doc: changed Layered doc --- lib/game/components/layer.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/game/components/layer.dart b/lib/game/components/layer.dart index c08717c0..518232fa 100644 --- a/lib/game/components/layer.dart +++ b/lib/game/components/layer.dart @@ -5,8 +5,10 @@ import 'package:flutter/material.dart'; /// Modifies maskBits and categoryBits of all the [BodyComponent]'s [Fixture]s /// to specify what other [BodyComponent]s it can collide with. /// -/// [BodyComponent]s with the same [Layer] can collide with each other, ignoring -/// those with different [Layer]s. +/// [BodyComponent]s with compatible [Layer]s can collide with each other, +/// ignoring others. This compatibility depends on bit masking operation +/// between layers. +/// For more information read: https://en.wikipedia.org/wiki/Mask_(computing). /// {@endtemplate} mixin Layered on BodyComponent { Layer _layer = Layer.all;