|
|
@ -251,10 +251,6 @@ void SetCameraMode(Camera camera, int mode) |
|
|
|
cameraAngle.x = asinf( (float)fabs(dx)/distance.x); // Camera angle in plane XZ (0 aligned with Z, move positive CCW) |
|
|
|
cameraAngle.y = -asinf( (float)fabs(dy)/distance.y); // Camera angle in plane XY (0 aligned with X, move positive CW) |
|
|
|
|
|
|
|
// NOTE: Just testing what cameraAngle means |
|
|
|
//cameraAngle.x = 0.0f*DEG2RAD; // Camera angle in plane XZ (0 aligned with Z, move positive CCW) |
|
|
|
//cameraAngle.y = -60.0f*DEG2RAD; // Camera angle in plane XY (0 aligned with X, move positive CW) |
|
|
|
|
|
|
|
playerEyesPosition = camera.position.y; |
|
|
|
|
|
|
|
// Lock cursor for first person and third person cameras |
|
|
|