Multiple Lerp Calculations
A project I'm involving myself in will involve a single object with multiple parts (a gun) being animated through multiple in-code lerps. Doing this because it seems more efficient when I need the to do stuff like moving the gun whilst the slide's pulled back and such.
What's an efficient and slightly less confusing way of containing all of the code required to do lerp animations without the endless blocks upon blocks of maths code?
just a thought. create a method with float params as parameters. in the method you loop through all of the values and run therm through your lerp logic. I don't know what exactly the use case will be so it's just an idea.
another could be a float extension method that wraps the Lerp so you can call:
float final = 5f.LerpExt(.2f).LerpExt(.5f).LerpExt...;
Your answer
Follow this Question
Related Questions
what wrong with lerp. 1 Answer
Simple Advice needed - Lerp, SmoothDamp, SmoothStep...... etc. 2 Answers
How to control rocket pathing with Quaternion.Slerp 1 Answer
Problems with Trigonometry and LERPing 0 Answers
Can't lerp????? 0 Answers