fix: Fix collision detection comments and typo (#1422)

* Fix collision detection comments and typo

* Update packages/flame/lib/src/collisions/collision_callbacks.dart

Co-authored-by: Pasha Stetsenko <stpasha@google.com>

* Update doc/flame/collision_detection.md

Co-authored-by: Pasha Stetsenko <stpasha@google.com>

Co-authored-by: Pasha Stetsenko <stpasha@google.com>
This commit is contained in:
Lukas Klingsbo
2022-03-08 14:38:21 +01:00
committed by GitHub
parent 7b0fd20a2c
commit dfeafdd6f3
13 changed files with 52 additions and 45 deletions

View File

@ -37,7 +37,7 @@ class GestureHitboxesExample extends FlameGame
Vector2.random(_rng),
Vector2.random(_rng)..y *= -1,
];
return PolygonHitbox.relatve(points, parentSize: shapeSize);
return PolygonHitbox.relative(points, parentSize: shapeSize);
}
}();
return MyShapeComponent(