Typo
This commit is contained in:
parent
af6e457322
commit
69dac275b4
1 changed files with 1 additions and 1 deletions
|
@ -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])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue