Fixed right weapon

This commit is contained in:
jancoow
2016-06-21 11:32:37 +02:00
parent 3f8623d0bf
commit 06a768a3a1
2 changed files with 5 additions and 2 deletions
+2 -1
View File
@@ -126,7 +126,8 @@ void CrystalPoint::update()
if (rightControllerJoystick->x > 0.3 || rightControllerJoystick->x < -0.3) {
player->rotation.y += rightcontroller->joystick.x/2;
}
}
player->rightWeapon->rotateWeapon(Vec3f(rightcontroller->ypr.y + 140, 0, -rightcontroller->ypr.z));
}
if (player->rotation.x > 90)
player->rotation.x = 90;