Skip to content
Permalink
Browse files

Merge PR #2320: [Rocket League] Fixed inverted Z (left/right) value

  • Loading branch information...
mkrautz committed May 31, 2016
2 parents 44ea8c8 + d2416ca commit 3e1d7ed9c2439ed5aae59f733f6ac19d9f6d9330
Showing with 3 additions and 3 deletions.
  1. +3 −3 plugins/rl/rl.cpp
@@ -42,15 +42,15 @@ static int fetch(float *avatar_pos, float *avatar_front, float *avatar_top, floa
Mumble | Game
X | Z
Y | Y
Z | X
Z | -X
*/
avatar_pos[0] = avatar_pos_corrector[2];
avatar_pos[1] = avatar_pos_corrector[1];
avatar_pos[2] = avatar_pos_corrector[0];
avatar_pos[2] = -avatar_pos_corrector[0]; // Convert from right handed to left handed coordinate system

camera_pos[0] = camera_pos_corrector[2];
camera_pos[1] = camera_pos_corrector[1];
camera_pos[2] = camera_pos_corrector[0];
camera_pos[2] = -camera_pos_corrector[0]; // Convert from right handed to left handed coordinate system

avatar_front[0] = avatar_front_corrector[2];
avatar_front[1] = avatar_front_corrector[1];

0 comments on commit 3e1d7ed

Please sign in to comment.
You can’t perform that action at this time.