mirror of
https://github.com/mwpenny/portal64-still-alive.git
synced 2024-10-19 22:27:36 -04:00
Fix sudden camera jump from looking down to looking up
This commit is contained in:
parent
f43de9167b
commit
e0ee75e34c
|
@ -900,7 +900,7 @@ void playerUpdate(struct Player* player) {
|
|||
|
||||
float pitchSign = signf(player->pitchVelocity);
|
||||
|
||||
if (!didPassThroughPortal && lookingForward.y * pitchSign > newLookingForward.y * pitchSign) {
|
||||
if (!didPassThroughPortal && lookingForward.y * pitchSign > newLookingForward.y * pitchSign && lookingForward.y * pitchSign > 0.0f) {
|
||||
struct Vector3 newForward = gZeroVec;
|
||||
newForward.y = pitchSign;
|
||||
struct Vector3 newUp;
|
||||
|
|
Loading…
Reference in a new issue