Selaa lähdekoodia

Fix mesh picking example

pull/521/head
lumaio teon 7 vuotta sitten
vanhempi
commit
7bd0f8b28c
No known key found for this signature in database GPG Key ID: BC93C51B4BDB5819
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. +2
    -2
      examples/models/models_mesh_picking.c

+ 2
- 2
examples/models/models_mesh_picking.c Näytä tiedosto

@ -101,8 +101,8 @@ int main()
{ {
hitMeshBBox = true; 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)) if ((meshHitInfo.hit) && (meshHitInfo.distance < nearestHit.distance))
{ {

Ladataan…
Peruuta
Tallenna