Browse Source

Fix mesh picking example

pull/521/head
lumaio teon 6 years ago
parent
commit
7bd0f8b28c
No known key found for this signature in database GPG Key ID: BC93C51B4BDB5819
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      examples/models/models_mesh_picking.c

+ 2
- 2
examples/models/models_mesh_picking.c View File

@ -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))
{

Loading…
Cancel
Save