Timeline for Stop Lerp at relative location?
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 26, 2015 at 16:13 | answer | added | Géry Arduino | timeline score: 1 | |
Mar 26, 2015 at 16:05 | comment | added | Géry Arduino |
Lerp(A,B,C) returns the interpolated value placed at (C*100) percents between A and B (in that order) If you use what you wrote every frame this is what happen : CameraPosition gets incremented, and then that incremented value is passed (in the next frame) as parameter to the next frame incrementation. Lets admit that instead of Time.time you used 1, you would get : CameraPosition = CameraPosition +0.8F; every frame (Looks familiar?) Whatever the value of C because A = Lerp(A,A+x,C) , A always increase
|
|
Mar 26, 2015 at 4:52 | answer | added | jzx | timeline score: 0 | |
Mar 26, 2015 at 0:29 | history | asked | eternal | CC BY-SA 3.0 |