Latest axis Activity
I want to change the axes of the gyro control so that the mobile phone does not have to be held upright, but lies flat on a table, but i don't know which parameters i need to change. Thanks!
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Gyrocontrol : M…
The way I find up_tmp in init_camera_axis() is not optimal because if my cam->vec is (1, 1, -1) I can't find the right up_tmp. I currently find (0, 0, 1) and it should be equal to (-1, 0, 1). Do you have any idea how I can correct this ?
I had to normalize right and up.
Thank you very much for your help.
Finally, this helped me :
https://gamedev.stackexchange.com/questions/185245/rotating-camera-in-3d-without-yawing-diagonally
I still have to calculate the angles and manage the interval.
Advertisement
Advertisement