Login

Fancade Wiki

Updated LERP.md (markdown)

... ...
@@ -15,8 +15,5 @@ Output:
15 15
16 16
## Example
17 17
18
[[/uploads/Screenshot_20201205-2212052.png|alt=LERP usage example]]
18
[[/uploads/20210105_102823.jpg]]
19 19
20
Explaination of the above script: Rot A is the rotation of the block. Use get position if you made the block to have other rotations too (You have to get the rotation in a single frame, or else it will become a loop of the LERP script trying to set it back to Rot B.). Rot B is the rotation you want the block to go to. Set B to the rotation you want. "Speed" is the speed of changing the rotation A to rotation B.
21
Now it will be easier to understand LERP, with which you can do smooth rotations.
22
What LERP actually does, is giving a rotation between the first rotation input and the second one. The number input is how far between those roation the output should be. 0 will output the first rotation, 1 will output the second rotation, 0.5 will output a rotation exactly in the middle of the two inputs, etc.
... ...
\ No newline at end of file
Fancade Wiki