mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Recast: fix camera movement bug (XZ -> XY)
Up/down should be applied to the Z axis.
This commit is contained in:
parent
2896dc0d37
commit
8b51403310
@ -777,7 +777,7 @@ int not_main(int argc, char** argv)
|
||||
cameraPos[1] += movey * static_cast<float>(modelviewMatrix[6]);
|
||||
cameraPos[2] += movey * static_cast<float>(modelviewMatrix[10]);
|
||||
|
||||
cameraPos[1] += (moveUp - moveDown) * keybSpeed * dt;
|
||||
cameraPos[2] += (moveUp - moveDown) * keybSpeed * dt;
|
||||
|
||||
glEnable(GL_FOG);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user