Removing some compiler warnings.

This commit is contained in:
2021-09-02 07:01:31 -07:00
parent 45a4354ebb
commit 5c4fc01b43
6 changed files with 18 additions and 17 deletions

View File

@ -41,9 +41,9 @@ void cameraOrbit(camera_t *camera,
float distance, float yaw, float pitch,
float targetX, float targetY, float targetZ
) {
float cy = cos(pitch);
float x = distance * sin(yaw) * cy;
float y = distance * sin(pitch);
float z = distance * cos(yaw) * cy;
float cy = cosf(pitch);
float x = distance * sinf(yaw) * cy;
float y = distance * sinf(pitch);
float z = distance * cosf(yaw) * cy;
cameraLookAt(camera, x, y, z, targetX, targetY, targetZ);
}