Download

Problem with rotating camera with timeline (solved)

I want to make 180-degree turn and everything is working except for the fact that the camera goes crazy during the turn. It seems like it rotates way more than 180 and the end result varies


The Camera Turn variable goes from 0 to 1 in 0.5 seconds inside the timeline

Golden rule of using timelines is ‘calculate your start and end points before you enter the timeline’.

You’re sampling data during the timeline, which is why you’re getting strange behavior.

2 Likes

Yeah, I figured that. I was adding 180 degrees every Update iteration, which caused crazy 1000+ degrees turns

Yeah, just get your current rotation and target rotation, put them in variables, and then do the TL :slight_smile:

If you’re using ‘finterp’ THEN yes, use real time sampling, because that’s how that node works.

1 Like