This commit is contained in:
Milan Nikolic 2017-11-19 20:35:01 +01:00
parent af6e457322
commit 69dac275b4

View file

@ -584,7 +584,7 @@ func (b *Body) Shatter(position raylib.Vector2, force float32) {
for j := 0; j < newData.VertexCount; j++ { for j := 0; j < newData.VertexCount; j++ {
nextVertex := 0 nextVertex := 0
if j+1 < newData.VertexCount { if j+1 < newData.VertexCount {
nextIndex = j + 1 nextVertex = j + 1
} }
face := raymath.Vector2Subtract(newData.Vertices[nextVertex], newData.Vertices[j]) face := raymath.Vector2Subtract(newData.Vertices[nextVertex], newData.Vertices[j])