r/Unity3D – Telegram
r/Unity3D
264 subscribers
12.6K photos
15.6K videos
14 files
48K links
News about the Unity engine and project showcases from Reddit. Made possible with @reddit2telegram (@r_channels).
Download Telegram
Animation interpolation, but sampled at a fixed framerate

I want to animate an object’s movement at a fixed framerate (the one specified in "Samples" box).
So basically this is the end result of what I want:


https://preview.redd.it/smlohus8ipze1.png?width=807&format=png&auto=webp&s=520a763decf10f687a0e26f403ae987a306a19ab

But I don’t want to set the value of the position for each keyframe, I want to use interpolation between a starting and an end position.

So far, the only way I found, was to start with only the first and last keyframes, and set the positions and interpolation I want.

https://preview.redd.it/nysxbyabipze1.png?width=775&format=png&auto=webp&s=3761111a56bab516795210518fb93d975ac17c00

And then go through the annoying process of creating every possible keyframe inbetween.
Finally I select all keyframes and change the tangents to constant.

Surely there must be an easier, more elegant way to do this, I just couldn't find anything on google.

https://redd.it/1kicjjv
@r_Unity3D