mirror of
https://github.com/flame-engine/flame.git
synced 2025-10-30 08:27:36 +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:
@ -81,7 +81,7 @@ class AnimatedComponent extends SpriteAnimationComponent
|
||||
final hitboxPaint = BasicPalette.white.paint()
|
||||
..style = PaintingStyle.stroke;
|
||||
add(
|
||||
PolygonHitbox.relatve(
|
||||
PolygonHitbox.relative(
|
||||
[
|
||||
Vector2(0.0, -1.0),
|
||||
Vector2(-1.0, -0.1),
|
||||
|
||||
Reference in New Issue
Block a user