mirror of
https://github.com/raysan5/raylib.git
synced 2025-12-18 04:03:21 +00:00
Review spacing for cosistency
This commit is contained in:
parent
afda1d0815
commit
76a6bf6c52
10
src/core.c
10
src/core.c
@ -1057,14 +1057,8 @@ Ray GetMouseRay(Vector2 mousePosition, Camera camera)
|
|||||||
// Calculate normalized direction vector
|
// Calculate normalized direction vector
|
||||||
Vector3 direction = Vector3Normalize(Vector3Subtract(farPoint, nearPoint));
|
Vector3 direction = Vector3Normalize(Vector3Subtract(farPoint, nearPoint));
|
||||||
|
|
||||||
if(camera.type == CAMERA_PERSPECTIVE)
|
if (camera.type == CAMERA_PERSPECTIVE) ray.position = camera.position;
|
||||||
{
|
else if (camera.type == CAMERA_ORTHOGRAPHIC) ray.position = cameraPlanePointerPos;
|
||||||
ray.position = camera.position;
|
|
||||||
}
|
|
||||||
else if(camera.type == CAMERA_ORTHOGRAPHIC)
|
|
||||||
{
|
|
||||||
ray.position = cameraPlanePointerPos;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Apply calculated vectors to ray
|
// Apply calculated vectors to ray
|
||||||
ray.direction = direction;
|
ray.direction = direction;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user