aboutsummaryrefslogtreecommitdiff
path: root/src/core.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core.c b/src/core.c
index 811f082a..df380552 100644
--- a/src/core.c
+++ b/src/core.c
@@ -938,6 +938,12 @@ Vector2 WorldToScreen(Vector3 position, Camera camera)
return screenPosition;
}
+// Get transform matrix for camera
+Matrix GetCameraMatrix(Camera camera)
+{
+ return MatrixLookAt(camera.position, camera.target, camera.up);
+}
+
//----------------------------------------------------------------------------------
// Module Functions Definition - Input (Keyboard, Mouse, Gamepad) Functions
//----------------------------------------------------------------------------------