iSymon
|
  |
| Joined: 19 Nov 2011 |
| Total Posts: 1023 |
|
|
| 18 Jan 2016 05:13 PM |
http://wiki.roblox.com/index.php?title=Lerp
Somewhat complex |
|
|
| Report Abuse |
|
iSymon
|
  |
| Joined: 19 Nov 2011 |
| Total Posts: 1023 |
|
| |
|
| 18 Jan 2016 05:17 PM |
its to tween a vector from point a to point b you give it a float 0-1 .5 is half way from point a to point b 1 is at point b 0 is at point a
PointA = Vector3.new(10,30,10) PointB = Vector3.new(50,20,60)
for i = 0,1,.1 do PointA:Lerp(PointB, i) wait(.1) end
|
|
|
| Report Abuse |
|
|
| 18 Jan 2016 05:19 PM |
I forgot to add a print to the vector3 it returns output
10, 30, 10 14, 29, 15 18, 28, 20 22, 27, 25 26, 26, 30 30, 25, 35 34, 24, 40 38, 23, 45 42, 22, 50 46, 21, 55 50, 20, 60
|
|
|
| Report Abuse |
|