diff options
| author | jussi | 2022-03-31 13:55:02 +0300 |
|---|---|---|
| committer | jussi | 2022-03-31 13:55:02 +0300 |
| commit | 30d425aa26a3aa802cb2ff55f1f7655be056f3ed (patch) | |
| tree | 5d6e0e9a0d6c14df15f3e1ac8ab143dd9a8452c4 /API.md | |
| parent | a3c28c00016fb2a2bd13b36e7269c69b0529c6a4 (diff) | |
| download | reilua-enhanced-30d425aa26a3aa802cb2ff55f1f7655be056f3ed.tar.gz reilua-enhanced-30d425aa26a3aa802cb2ff55f1f7655be056f3ed.tar.bz2 reilua-enhanced-30d425aa26a3aa802cb2ff55f1f7655be056f3ed.zip | |
Screen-space related functions for 3DCamera.
Diffstat (limited to 'API.md')
| -rw-r--r-- | API.md | 33 |
1 files changed, 32 insertions, 1 deletions
@@ -667,7 +667,7 @@ int id. Basic 3d Model type --- -> RayCollision = { hit = true, distance = 1.0, point = { 0.0, 0.0 }, normal = { 0.0, 0.0, 1.0 } } +> RayCollision = { hit = true, distance = 1.0, point = { 0.0, 0.0, 0.0 }, normal = { 0.0, 0.0, 1.0 } } Raycast hit information. NOTE: Data in named keys @@ -1721,6 +1721,37 @@ Update camera position for selected mode --- +## Core - Screen-space + +--- + +> ray = RL_GetMouseRay( Vector2 mousePosition, Camera3D camera ) + +Get a ray trace from mouse position + +- Failure return false +- Success return Ray + +--- + +> matrix = RL_GetCameraMatrix( Camera3D camera ) + +Get camera transform matrix ( view matrix ) + +- Failure return false +- Success return Matrix + +--- + +> position = RL_GetWorldToScreen( Vector3 position, Camera3D camera ) + +Get the screen space position for a 3d world space position + +- Failure return false +- Success return Vector2 + +--- + ## Shapes - Drawing --- |
