How to smoothly tilt the camera
Asked Answered
E

1

0

I need help with smoothly tilting the camera with code or animations when strafing left and right. I got it kinda working with vector3 lerp but it blocked up and down camera movement and i have no idea how to do it properly. My current code is camera.rotation_degrees.z = -horizontal_velocity. I'm using the velocity to rotate the camera temporarily but i want to have a static rotation of 10 degrees.

Earthen answered 10/1 at 18:54 Comment(0)
D
0

Earthen Insert an additional node into camera rig hierarchy and rotate only that node for tilting.

Disendow answered 10/1 at 19:13 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.