diff options
| author | Ray <[email protected]> | 2021-10-13 23:45:57 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2021-10-13 23:45:57 +0200 |
| commit | 83b3478fe40ac3160606392373483649c93aa5ed (patch) | |
| tree | 01666be170255180fd17eff9cf23763e755ce4a6 /src/rcamera.h | |
| parent | 51b147cd322c88d2bc4a84e89f826cac9198a45b (diff) | |
| download | raylib-83b3478fe40ac3160606392373483649c93aa5ed.tar.gz raylib-83b3478fe40ac3160606392373483649c93aa5ed.zip | |
Reviewed some TODO
Diffstat (limited to 'src/rcamera.h')
| -rw-r--r-- | src/rcamera.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/rcamera.h b/src/rcamera.h index 5edd79de..2a86e362 100644 --- a/src/rcamera.h +++ b/src/rcamera.h @@ -279,7 +279,6 @@ void SetCameraMode(Camera camera, int mode) // System: EnableCursor(), DisableCursor() // Mouse: IsMouseButtonDown(), GetMousePosition(), GetMouseWheelMove() // Keys: IsKeyDown() -// TODO: Port to quaternion-based camera (?) void UpdateCamera(Camera *camera) { static int swingCounter = 0; // Used for 1st person swinging movement @@ -532,7 +531,6 @@ void UpdateCamera(Camera *camera) // Camera distance clamp if (CAMERA.targetDistance < CAMERA_THIRD_PERSON_DISTANCE_CLAMP) CAMERA.targetDistance = CAMERA_THIRD_PERSON_DISTANCE_CLAMP; - // TODO: It seems camera->position is not correctly updated or some rounding issue makes the camera move straight to camera->target... camera->position.x = sinf(CAMERA.angle.x)*CAMERA.targetDistance*cosf(CAMERA.angle.y) + camera->target.x; if (CAMERA.angle.y <= 0.0f) camera->position.y = sinf(CAMERA.angle.y)*CAMERA.targetDistance*sinf(CAMERA.angle.y) + camera->target.y; |
