Bläddra i källkod

Fix mesh picking example

lumaio teon 7 år sedan
förälder
incheckning
7bd0f8b28c
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      examples/models/models_mesh_picking.c

+ 2 - 2
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)) 
             {