Parcourir la source

Fix GetCameraRight (#3784)

pull/3788/head
Danil il y a 1 an
committed by GitHub
Parent
révision
6a8cc62b67
Aucune clé connue n'a été trouvée dans la base pour cette signature ID de la clé GPG: B5690EEEBB952194
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. +1
    -1
      src/rcamera.h

+ 1
- 1
src/rcamera.h Voir le fichier

@ -243,7 +243,7 @@ Vector3 GetCameraRight(Camera *camera)
Vector3 forward = GetCameraForward(camera);
Vector3 up = GetCameraUp(camera);
return Vector3CrossProduct(forward, up);
return Vector3Normalize(Vector3CrossProduct(forward, up));
}
// Moves the camera in its forward direction

Chargement…
Annuler
Enregistrer