Questions tagged [lerp]
Short for "linear interpolation".
82 questions
0 votes
1 answer
96 views
Lerping Time.timeScale causes laggy physics
I am using unity as my game development platform. I was trying to create script that could interpolate time scale to achieve a flurry rush. The code below is my attempt: ...
0 votes
1 answer
231 views
Lerp() issues: cannot convert argument from int to float
I am using Godot 4.3, it is giving me this error and when I change 0 to 0.0, the character stops moving. If I change the last parameter to an integer also it still shoots an error: ...
0 votes
1 answer
264 views
How do tween librarys in Unity update tweens?
I am trying create a small lerp helper script that basically allows me to do something like a small tween with a extension or static method (So I can call it from my other scripts easily like you can ...
2 votes
1 answer
551 views
Consistently moving a GameObject from Point A to Point B using Unity Visual Scripting
I built a subGraph in Unity Visual Scripting to move a GameObject ("returnThisGameObject") from its current location (Point A) to its originalPosition (Point B). The code run dozen of times ...
-1 votes
2 answers
852 views
Lerp Teleporting In Unity
I am trying to make a object move back and fourth but its teleporting instead of moving smoothly. This is my code. ...
0 votes
1 answer
613 views
How can I ease in and out of a Lerp motion over a set duration?
Here is the code I am using: ...
0 votes
0 answers
233 views
Why does Lerp not reach target if setting rb.position, but setting rb.transform.position works?
I don't understand the logic here. I have the following script which makes a player jump towards a target: ...
0 votes
1 answer
1k views
Snapping to z or x rotation values with Quaternion.Lerp
My player is a cube. I want to restrict/prevent its rotation around global y axis. I am doing this using Quaternior.Lerp since I do not want to completely constraint rotation around y axis, I just ...