Linked Questions
37 questions linked to/from Why use Time.deltaTime in Lerping functions?
0
votes
1
answer
285
views
Rotate object to closest clone?
I'm working on a tower defense game.
I'm trying to make my gun object rotate and shoot the nearest instance of the "enemy" object.
My problem here is my gun script rotates only to the main enemy ...
1
vote
1
answer
360
views
Lerp UI Color outside update method?
I'm able to Lerp the color of a UI panel within the Update method. However I'd like to trigger behavior a single time when needed. If I put it in a method and call it it only changes for a brief time ...
0
votes
1
answer
153
views
How can i check when rotation is ended?
At the top of script:
public Quaternion _lookRotation;
In Update:
...
0
votes
1
answer
152
views
How do I make an object look at an angle in a top-down persepective?
Given a top-down persepective and lets say I know the angle I want to look at, how do I make a gameobject look into that angle? I currently have code like this:
...
0
votes
1
answer
144
views
Moving camera vertically only after player is too high or too low
In my 2D platformer game, I find it very exhausting for the player if the camera follows the player all the time. So, I looked up for some tricks to make camera movement feel more natural.
The first ...
0
votes
1
answer
114
views
Why when increasing the speed it's getting to the max speed but in fact it's not the max speed ? why it's not getting to the value 1 but to 0.999999?
A bit long post but both scripts are connected and working together.
The speed is a parameter in Animator that moves between 0 and 1.
At this speed I'm using first the SlowDown function to slow down ...
1
vote
1
answer
53
views
How can i make that when pressing F fast many time it will scale the object down/up smooth without waiting?
The first script is for the F pressing and calling the ScaleChange:
...