OMAR Posted March 26, 2016 Share Posted March 26, 2016 To lerp between 2 vectors we use BABYLON.Vector3.Lerp() Is there a similar function which does the same thing (lerping) but between two numbers rather than vectors? Thanks Quote Link to comment Share on other sites More sharing options...
jerome Posted March 26, 2016 Share Posted March 26, 2016 function Lerp(start, end, amount) { return (start + (end - start) * amount); } OMAR 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.