fishfolk / jumpy

Tactical 2D shooter in fishy pixels style. Made with Rust-lang 🦀 and Bevy 🪶
https://fishfolk.org/games/jumpy/
Other
1.6k stars 115 forks source link

bug: incorrect collision when player slides into the right side of a solid #910

Closed nelson137 closed 6 months ago

nelson137 commented 6 months ago

Description

When a player slides into the right side of a solid object they are stopped just before it, leaving a gap.

https://github.com/fishfolk/jumpy/assets/25290530/3851d2b3-8f58-41c0-8462-9b641334d63a

To Reproduce

  1. Walk left toward a solid object
  2. Start sliding

Expected Behavior

Player stops up against the collider -- there should be no gap when sliding into an object.

Additional Context

This bug is not present for the left sides of objects.

Log Messages

No response