diff options
| author | Ray <raysan5@gmail.com> | 2016-01-07 17:04:56 +0100 |
|---|---|---|
| committer | Ray <raysan5@gmail.com> | 2016-01-07 17:04:56 +0100 |
| commit | 21229aa3f6b5a13062563fc3950cd98fe47383b8 (patch) | |
| tree | 56b24a868de2522c8ea50930f562b6a28e326ce2 /src/raylib.h | |
| parent | 7f2e67e924ae9f3f4c1172d14d25fc6212618339 (diff) | |
| parent | 1793f2c3b87f1ed487216e23f3074085753ee346 (diff) | |
| download | raylib-21229aa3f6b5a13062563fc3950cd98fe47383b8.tar.gz raylib-21229aa3f6b5a13062563fc3950cd98fe47383b8.zip | |
Merge pull request #71 from victorfisac/develop
Implemented ray trace from mouse position
Diffstat (limited to 'src/raylib.h')
| -rw-r--r-- | src/raylib.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/raylib.h b/src/raylib.h index 72211b59..b6900a97 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -756,6 +756,7 @@ void DrawBillboardRec(Camera camera, Texture2D texture, Rectangle sourceRec, Vec bool CheckCollisionSpheres(Vector3 centerA, float radiusA, Vector3 centerB, float radiusB); // Detect collision between two spheres bool CheckCollisionBoxes(Vector3 minBBox1, Vector3 maxBBox1, Vector3 minBBox2, Vector3 maxBBox2); // Detect collision between two boxes bool CheckCollisionBoxSphere(Vector3 minBBox, Vector3 maxBBox, Vector3 centerSphere, float radiusSphere); // Detect collision between box and sphere +bool CheckCollisionRayBox(Ray ray, Vector3 minBBox, Vector3 maxBBox); // Detect collision between ray and box Vector3 ResolveCollisionCubicmap(Image cubicmap, Vector3 mapPosition, Vector3 *playerPosition, float radius); // Detect collision of player radius with cubicmap // NOTE: Return the normal vector of the impacted surface |
