Inaccurate collisions when using a lot of ColliderShape
s with the same height
#124
Labels
A-Dynamics
C-Bug
Something isn't working
D-Difficult
Needs strong technical background, domain knowledge, or impacts are high, needs testing...
P-Medium
S-not-started
Work has not started
When programming a simple platformer, building a straight path out of many
ColliderShape
s and having a character walk on it doesn't work.I am assuming that the issue is that the y-coordinate of every
ColliderShape
is not exactly the same, because off32
inaccuracies. So the character walks along the straight path but bumps into a block that isn't exactly on the same y-coordinate as the one before it.Example code
Somebody else had this issue before, probably with a better explanation of what the issue is about: https://dev.to/sbelzile/making-games-in-rust-part-7-fixing-the-player-randomly-stuck-issue-3mj5.
The text was updated successfully, but these errors were encountered: