Hello
trying to use controller to rotate player camera
// get head position in world coords
Player player = engine.game.getPlayer();
Mat4 player_transform = player.getWorldTransform();
Mat4 hmd_transform = engine.oculus.getDevicePose(OCULUS_DEVICE_HMD);
Mat4 hmd_transform_world = player_transform * hmd_transform;
quat i_rotation = player.getWorldRotation();//(1) woking - but no hmd transform
//i_rotation = rotation(hmd_transform_world); (2) - not working - and controllers go unresponsible
//i_rotation = hmd_transform_world;// (3) - nothing
i_rotation = quat(vec3(1, 0, 0), R_thumb.y) * conjugate(i_rotation) * quat(vec3(0, 0, 1), -R_thumb.x);// apply delta pitch/yaw
quat camera_rotation = conjugate(i_rotation);
player.setWorldRotation(camera_rotation);
with (1) pitch/yaw changing are working - but rotating around wrong axis if hmd rotated
with (2) or (3) nothing happening - no errors, no controller responces, no vibratiion at button pressing (
how to account hmd rotation matrix for quat axis rotation?
do I incorrectly assign mat4 to quat?
also there no .getRight() .getForward() ... methods in uscript? (