16.06.2017, 21:43
Quote:
Done it, I used wrong function. Working code
Code:
GetQuatFromEuler(rx, ry, rz, qw, qx, qy, qz); QuatRotate(qw, qx, qy, qz, -0.05, 0.0, 0.0, x, y, z); //use x, y, z |
Also one thing to note, normally +oY would be in front of a vehicle (facing north)
But for objects it matters in which direction they look without rotation (If facing North, +oY is the front, East = +oX, South = -oY, West = -oX)