Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要在 OpenGL 中做一个简单的动画。
我想要一个物体在两点之间移动。如何使用动画的进度 (0-1) 计算位置?
假设Beg和End是矢量值的,并且Alpha是您的插值:
Beg
End
Alpha
InterpolatedPoint = ((1 - Alpha) * Beg) + (Alpha * End)