So basically I have a camera attached to a character and you can’t look around so I am trying to make q and e look around to fix this solution and I don’t know how to make e look current coordinates she is looking at plus 1y and I want it to loop until it is not pressed to make it smooth and same thing but subtracting y for q.
Hi @duskk,
you can add rotation to the camera directly:
let turnSpeed = Math.PI/100;
Input.onButtonPressed(()=>{
Camera.focusedItem.transition.rotateLocal(new Vector3(0,0,1), turnSpeed, 0.1)},
"q");
Input.onButtonPressed(()=>{
Camera.focusedItem.transition.rotateLocal(new Vector3(0,0,1), -turnSpeed, 0.1)},
"e");
Hope that helps