Linked Questions
37 questions linked to/from Why use Time.deltaTime in Lerping functions?
0
votes
1
answer
1k
views
How to convert linear lerp to non-linear using animation curve?
I have some code I run when I fell a tree in my game. Basically it picks a random direction and then falls. However atm it linear and doesnt look very realistic. What Id want is for it to start slow, ...
1
vote
1
answer
1k
views
how to get if a rotation/position has been completed?
I've done an if / else with the final position / rotation plus they never complete, how can I check this?
stays like this
https://i.sstatic.net/3ADqz.gif
...
0
votes
3
answers
946
views
Lerp rotation is offset
I am trying to get an object to slowly look at another object, that is, rotate slowly so its forward points towards the target position. Here is my code:
...
0
votes
1
answer
947
views
Rotating a spaceship around 2 axes rotates it around 3
I am developing a 3D space shooter and I've found that when trying to rotate the ship using X and Y axes, it also rotates on the Z axis.
The answer here helped me a lot, but now when I try to rotate ...
0
votes
1
answer
887
views
Can't figure out what's making the player teleport back to spawn
I've been working on a multiplayer game that uses pathfinding and I'm really confused over this one weird bug. On your screen, the other player glitches between the spawn point and his current ...
0
votes
1
answer
597
views
Why the transform is not looking at the target?
The goal is to make smooth rotating look at.
The parent object is my character have a Rigidbody.
The script is attached to the character parent.
I make a reference to the character child name head.
I ...
0
votes
1
answer
468
views
0
votes
3
answers
386
views
Using Lerp to zoom in on an object inside an if statement
I'm trying to zoom in on an object once the raycast hits it in the Update method, I am using the Lerp method to make the camera movement smoother but it's not working properly. The object only lerps ...
0
votes
1
answer
527
views
Smooth Rotate Object While Orbiting
I am working on a 3D game where you can control an object that orbits a sphere with an on-screen virtual joystick. So far I have that part working, but the object follows the joystick angle perfectly ...
0
votes
1
answer
407
views
0
votes
2
answers
361
views
Java LERP but with whole pixel values
I have a formula which returns a Lerp Vector3 value in integers but the problem is it never reaches the desired target value. It'...
-1
votes
2
answers
431
views
Parent object does not rotate on its own axis with its children. How do I fix it?
My parent object components: Rigidbody2D and the script I shared below.
Children(Head, Body, Arm, Backpack...): There is only collider. There is no rigidbody2D. (I want the parent object to use the ...
0
votes
1
answer
243
views
Move between two points at a constant speed in LWJGL
I've been making a game engine in lwjgl and I have been trying to get an ai to move from one point to another. I used a lerp method but the speed is dependent on the distance between the two points, ...
1
vote
1
answer
386
views
Camera Sensitivity in PointerLockControls to match actual games
I am creating a FPS game online. I want the user to be able to use a sensitivity they are familiar with from games they've played. In this case, I want them to use their Fortnite sensitivity.
I am ...
0
votes
1
answer
473
views
Does CharacterController benefit from adding lerp?
Does CharacterController benefit from adding lerp?
as in this script.
...