소스 검색

Merge pull request #84 from exploser/fix-raycasts

Fix incorrect index calculation in Mesh.Raycast()
Daniel Salvadori 7 년 전
부모
커밋
75584ac341
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
 	})
 }