medium10 pts · first answer countsgame-mathcamera
Camera smoothing changes with FPS
This camera follow feels smoother at 144 FPS than at 30 FPS. What is a frame-rate independent fix?
void LateUpdate() {
transform.position = Vector3.Lerp(transform.position, target.position, 0.1f);
}Discussion 0
Join free to post in the discussion.
Related questions
- Value returned by LerpGame Developer
- Sine of 90 is not 1Game Developer
- Two boxes overlappingGame Developer
- Camera snaps to the playerGame Developer
- Camera framing without custom codeGame Developer
- Spiky random terrainGame Developer
- Camera shake that stacks badlyGame Developer
- Slerp spins the long way roundGame Developer