You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the -= there
WHY
wasted hours of my life after copying this code and trying to figure out why my first person character controller was all fucked up
this is my fault for writing code and just not really being fully mentally present, probably, but i just want to know why. why.
did you somehow place the camera in a weird position and the movement didnt look right so you inverted the sign? why.
please fix this. i dont know what you would have to do to fix this. if you put the camera on the opposite side i'm pretty sure it would fuck up the horizontal movement instead of the vertical movement??? so idk what you have to do to fix this or WHY its like this but please please please fix this
The text was updated successfully, but these errors were encountered:
Unfortunately, this isn't really something I can fix. The sign is negative there because of Bevy's right-handed Y-up coordinate system. In Bevy, +Z is "pointing towards the screen", while "forward" is -Z, which you can see from Transform::forward:
There's a lot of reasons why Bevy uses this coordinate system, and it's also consistent with e.g. Godot and a lot of other tools. Cart (the lead dev of Bevy) has some reasons listed here: bevyengine/bevy#10488
Here's also Freya's chart on coordinate systems: (copied from the discussion)
yeah, i cant really think of any sort of thing that would fix it, maybe the best thing to do would be to simply add a comment next to the code to point out the inverted sign?
the -= there
WHY
wasted hours of my life after copying this code and trying to figure out why my first person character controller was all fucked up
this is my fault for writing code and just not really being fully mentally present, probably, but i just want to know why. why.
did you somehow place the camera in a weird position and the movement didnt look right so you inverted the sign? why.
please fix this. i dont know what you would have to do to fix this. if you put the camera on the opposite side i'm pretty sure it would fuck up the horizontal movement instead of the vertical movement??? so idk what you have to do to fix this or WHY its like this but please please please fix this
The text was updated successfully, but these errors were encountered: