mirror of
https://github.com/flame-engine/flame.git
synced 2025-10-29 16:05:47 +08:00
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:
@ -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),
|
||||
|
||||
Reference in New Issue
Block a user