Eauz
|
  |
| Joined: 23 Jul 2013 |
| Total Posts: 2942 |
|
|
| 17 Jan 2016 02:20 PM |
I saw the wiki page about it but it explains nothing but "It is similar to tweening"
I have never got into tweening in the first place. Anyway, I am making a vehicle and I am wondering if Lerp can make it an easier.
I use BodyVelocity to the move the vehicle and BodyAngular thingy to turn it around.
|
|
|
| Report Abuse |
|
|
AkaLua
|
  |
| Joined: 27 Jul 2012 |
| Total Posts: 526 |
|
|
| 17 Jan 2016 02:33 PM |
If you tween 10 to 20, with a lerp amount of 0.5, you will get 50.
It calculates a number between 2 numbers based on another number from 0 to 1
-____________________________- |
|
|
| Report Abuse |
|
|
|
| 17 Jan 2016 02:40 PM |
Not sure if Aka is trolling you, or what but...
> print(Vector3.new(10,10,10):lerp(Vector3.new(20,20,20), .5)) 15, 15, 15
|
|
|
| Report Abuse |
|
|
AkaLua
|
  |
| Joined: 27 Jul 2012 |
| Total Posts: 526 |
|
|
| 18 Jan 2016 10:11 AM |
I meant 15 sorry
-____________________________- |
|
|
| Report Abuse |
|
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
|
| 18 Jan 2016 10:14 AM |
It is just an interpolation method.
|
|
|
| Report Abuse |
|
|