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

@ -179,7 +179,7 @@ class CollidablePolygon extends MyCollidable {
Vector2 velocity,
ScreenHitbox screenHitbox,
) : super(position, size, velocity, screenHitbox) {
hitbox = PolygonHitbox.relatve(
hitbox = PolygonHitbox.relative(
[
Vector2(-1.0, 0.0),
Vector2(-0.8, 0.6),