Browse Source

Update camera.h

Removed unused code for CAMERA_THIRD_PERSON.
pull/867/head
PompPenguin 5 years ago
parent
commit
7367140fb4
1 changed files with 0 additions and 3 deletions
  1. +0
    -3
      src/camera.h

+ 0
- 3
src/camera.h View File

@ -469,9 +469,6 @@ void UpdateCamera(Camera *camera)
sinf(cameraAngle.x)*direction[MOVE_LEFT] - sinf(cameraAngle.x)*direction[MOVE_LEFT] -
sinf(cameraAngle.x)*direction[MOVE_RIGHT])/PLAYER_MOVEMENT_SENSITIVITY; sinf(cameraAngle.x)*direction[MOVE_RIGHT])/PLAYER_MOVEMENT_SENSITIVITY;
bool isMoving = false; // Required for swinging
for (int i = 0; i < 6; i++) if (direction[i]) { isMoving = true; break; }
// Camera orientation calculation // Camera orientation calculation
cameraAngle.x += (mousePositionDelta.x*-CAMERA_MOUSE_MOVE_SENSITIVITY); cameraAngle.x += (mousePositionDelta.x*-CAMERA_MOUSE_MOVE_SENSITIVITY);

Loading…
Cancel
Save