How to interpolate rotations

anonymous_user_68af3cbb
Wed, 13 May 2020 12:02:12 +0000
Editor Scripting

I’m trying to make a flying drone move such that it tilts to a certain angle of about 45 degrees and then continues to move linearly in the direction of rotation until the button is released. I’ve managed to make it do that, but instead of it just snapping straight from 0 to 45 I’d like it to tilt more smoothly, but I don’t really know what to use as the input for either alpha in Lerp(rotator) or DeltaTime in RinterpTo. Which of these two functions is better for the intended purpose, and what can I use for the mentioned variables?

https://drive.google.com/open?id=1eIDU0GAG-8ck5DzNWNmID2Zbo3k3t4tF

I’ve attached a link to the video of how I would like my drone to move.

12 posts - 1 participant