Notifications
Clear all

Camera spinning

1 Posts
1 Users
0 Likes
1,276 Views
(@willij)
Posts: 1
New Member
Topic starter
 

When I manually set the camera's yew & pitch and so on with this code:

myMotor.SetTargetYawPitch(_yaw, _pitch, 0);
MainCamera.fieldOfView = _fov;
CameraController.TargetFOV = _fov;
CameraController.AnchorOffset = new Vector3(0f, _yOffset, 0f);

Sometimes the camera will just spin out of control when I move the player character. Eventually if I mess around with the mouse and moving around and such the camera will go back to normal but...

Any idea how to stop this from happening?

 
Posted : 05/06/2021 8:13 pm
Share: