From 69dac275b44e94b2fc0fe7af0a5eab4f3d1ff65a Mon Sep 17 00:00:00 2001 From: Milan Nikolic Date: Sun, 19 Nov 2017 20:35:01 +0100 Subject: [PATCH] Typo --- physics/physics.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/physics/physics.go b/physics/physics.go index 9540625..2d80f7a 100644 --- a/physics/physics.go +++ b/physics/physics.go @@ -584,7 +584,7 @@ func (b *Body) Shatter(position raylib.Vector2, force float32) { for j := 0; j < newData.VertexCount; j++ { nextVertex := 0 if j+1 < newData.VertexCount { - nextIndex = j + 1 + nextVertex = j + 1 } face := raymath.Vector2Subtract(newData.Vertices[nextVertex], newData.Vertices[j])