mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-06 03:18:14 +00:00
FIX: Added CAMERA_CUSTOM check in UpdateCamera(Camera *camera, int mode)
(#3938)
Signed-off-by: Tomas Fabrizio Orsi <torsi@fi.uba.ar>
This commit is contained in:

committed by
GitHub

parent
e47ebec661
commit
10e702facd
@@ -444,7 +444,8 @@ void UpdateCamera(Camera *camera, int mode)
|
|||||||
bool lockView = ((mode == CAMERA_FREE) || (mode == CAMERA_FIRST_PERSON) || (mode == CAMERA_THIRD_PERSON) || (mode == CAMERA_ORBITAL));
|
bool lockView = ((mode == CAMERA_FREE) || (mode == CAMERA_FIRST_PERSON) || (mode == CAMERA_THIRD_PERSON) || (mode == CAMERA_ORBITAL));
|
||||||
bool rotateUp = false;
|
bool rotateUp = false;
|
||||||
|
|
||||||
if (mode == CAMERA_ORBITAL)
|
if (mode == CAMERA_CUSTOM) {}
|
||||||
|
else if (mode == CAMERA_ORBITAL)
|
||||||
{
|
{
|
||||||
// Orbital can just orbit
|
// Orbital can just orbit
|
||||||
Matrix rotation = MatrixRotate(GetCameraUp(camera), CAMERA_ORBITAL_SPEED*GetFrameTime());
|
Matrix rotation = MatrixRotate(GetCameraUp(camera), CAMERA_ORBITAL_SPEED*GetFrameTime());
|
||||||
|
Reference in New Issue
Block a user