Removing some compiler warnings.
This commit is contained in:
1 parent
a731fa6fd6
commit
ed3113a767
6 files changed
+18
-17
No files matched your search
@@ -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);
|
||||
}
|
||||
Reference in new issue
Block a user