|
| 20 Dec 2015 10:39 AM |
| I am horrible at math and need help making a slerp function. If someone can make a function and explain the math behind it, I would appreciate it. |
|
|
| Report Abuse |
|
|
|
| 20 Dec 2015 10:51 AM |
https://en.wikipedia.org/wiki/Slerp
I am not sure if that is what you want. Also, I sort of can understand what it is saying. I might be able to take a crack at replicating it into a Lua function. |
|
|
| Report Abuse |
|
|
|
| 20 Dec 2015 10:52 AM |
This guy is even talking about the equation.
http://www.euclideanspace.com/maths/algebra/realNormedAlgebra/quaternions/slerp/ |
|
|
| Report Abuse |
|
|
| |
|
Casualist
|
  |
| Joined: 26 Jun 2014 |
| Total Posts: 4443 |
|
|
| 20 Dec 2015 11:48 AM |
Use CFrame:lerp(target, alpha)
Conceptually the math breaks down to this: Figuring out the single rotation that translates start to finish and breaking down that rotation into axis-angle and lerping the angle. |
|
|
| Report Abuse |
|
|