瀏覽代碼

Update models_mesh_picking.c

pull/1812/head
Ray 3 年之前
父節點
當前提交
0565fb9fb6
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      examples/models/models_mesh_picking.c

+ 1
- 1
examples/models/models_mesh_picking.c 查看文件

@ -197,7 +197,7 @@ int main(void)
collision.normal.y, collision.normal.y,
collision.normal.z), 10, ypos + 30, 10, BLACK); collision.normal.z), 10, ypos + 30, 10, BLACK);
if (triHitInfo.hit && strcmp(hitObjectName, "Triangle") == 0)
if (triHitInfo.hit && TextIsEqual(hitObjectName, "Triangle"))
DrawText(TextFormat("Barycenter: %3.2f %3.2f %3.2f", bary.x, bary.y, bary.z), 10, ypos + 45, 10, BLACK); DrawText(TextFormat("Barycenter: %3.2f %3.2f %3.2f", bary.x, bary.y, bary.z), 10, ypos + 45, 10, BLACK);
} }

Loading…
取消
儲存