diff options
| author | Ray <[email protected]> | 2018-04-08 22:28:19 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2018-04-08 22:28:19 +0200 |
| commit | 9e7dedf5af6ea3f70196e86865b8a7e676b419b2 (patch) | |
| tree | b7ce38848b492596d1429dd7fcb5d02f3fdc6119 /examples | |
| parent | 3caa044bf259653eadcba5dc413101b95c6ebfbb (diff) | |
| parent | 7bd0f8b28c4cd576ab5c3e7b696d408f0f8045e4 (diff) | |
| download | raylib-9e7dedf5af6ea3f70196e86865b8a7e676b419b2.tar.gz raylib-9e7dedf5af6ea3f70196e86865b8a7e676b419b2.zip | |
Merge pull request #521 from TheLumaio/master
Added GetCollisionRayModel
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/models/models_mesh_picking.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/models/models_mesh_picking.c b/examples/models/models_mesh_picking.c index 1cc38b45..e09f9860 100644 --- a/examples/models/models_mesh_picking.c +++ b/examples/models/models_mesh_picking.c @@ -101,8 +101,8 @@ int main() { hitMeshBBox = true; - // Check ray collision against mesh - meshHitInfo = GetCollisionRayMesh(ray, &tower.mesh); + // Check ray collision against model + meshHitInfo = GetCollisionRayModel(ray, &tower); if ((meshHitInfo.hit) && (meshHitInfo.distance < nearestHit.distance)) { |
