瀏覽代碼

Fix incorrect index calculation in Mesh.Raycast()

This fixes #78
Pavel 7 年之前
父節點
當前提交
e9620d4b9a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      graphic/mesh.go

+ 1 - 1
graphic/mesh.go

@@ -154,7 +154,7 @@ func (m *Mesh) Raycast(rc *core.Raycaster, intersects *[]core.Intersect) {
 			intersect.Index = uint32(i)
 			*intersects = append(*intersects, *intersect)
 		}
-		i++
+		i += 3
 		return false
 	})
 }