Linked Questions
37 questions linked to/from Why use Time.deltaTime in Lerping functions?
0
votes
0
answers
28
views
9
votes
2
answers
15k
views
Best way to interpolate player movements in a very fast paced Unity game?
In my Unity online multiplayer game players move very fast and I currently use Lerp to interpolate between their last position and current position:
...
3
votes
2
answers
10k
views
How To Smoothly Animate From One Camera Position To Another
The Question is basically self explanatory. I have a scene with many cameras and I'd like to smoothly switch from one to another. I am not looking for a cross fade effect but more to a camera moving ...
2
votes
2
answers
6k
views
3
votes
3
answers
972
views
Finding average input value over time in seconds
I'd like to find the average input value from a controller over the last n seconds (say the last 0.1 seconds) and do this every frame.
I can see how to do this for the past n frames by storing a list ...
1
vote
2
answers
2k
views
How can I make a shader that will make a cube or any object invisible?
I'm trying to create a shader that will make the object invisible and then with a script a fade in/out effect between invisible and visible.
What I tried:
...
0
votes
1
answer
2k
views
Frame-rate independant movement with acceleration
First of all, this is different to this question, because that question doesn't update entities the same way I am.
My update loop goes something like this (for the player):
Apply acceleration based ...
0
votes
1
answer
2k
views
Starting a Coroutine after another Coroutine ends
I have a method that fades the screen to black, then fades away back again using coroutines but I couldn't get the 2nd part to work.
FadeToBlack() works if I put <...
1
vote
1
answer
2k
views
Add Lerp on only the Y axis
I want my camera to be smooth on only the Y axis.How do I do that it?
Current code:
...
0
votes
1
answer
2k
views
How to rotate CharacterController on slope
I'm trying to rotate my characterController player on a slope on the 'x' and 'z' axises, however things aren't going so well.
The player does rotate, but if I move and look in another direction, the ...
0
votes
2
answers
679
views
Moving panel between two positions smoothly?
I'm trying to make my panel moving from one position to another one smoothly. What I get is more faster no matter what I did to make it slower never get slow !! Both Vector3.Lerp and Vector3....
0
votes
2
answers
1k
views
Unity 2d - Vector3.Lerp Not Working as Expected
I have asked this question on other community but still get no response after a month, so I decided to ask it here.
I am trying to put player position to the middle of camera when it is reaching near ...
0
votes
2
answers
2k
views
Syncing & smoothing movement with rigidbodies with Socket.io
I am building a 2D top-down MMO that's very lightweight.
I have a master client that determines everything's position and actions, and sends this information to all other clients.
Now I have made a ...
0
votes
1
answer
1k
views
How to set transform.up without locking the y-axis?
I'm trying to make an object's transform.up to a normal of the raycastHit point. I tried using this line of code:
...
0
votes
1
answer
927
views
Lerp performance for camera movement
In my current script responsible for camera movement, I use Mathf.Lerp to smoothly move the camera to the desired position (with WASD movement, panning with MMB, ...