Boundary fix, at small performance cost.
This commit is contained in:
1 parent
bc66aa740e
commit
f6fead2ddd
1 file changed
+3
-1
+3
-1
@@ -237,8 +237,10 @@ func (g *Game) UpdateParticles() {
|
||||
if g.resolvecollisions {
|
||||
g.resolvers[g.resolveridx](particle)
|
||||
}
|
||||
}
|
||||
|
||||
g.BoundParticle(particle)
|
||||
for _, p := range g.particles {
|
||||
g.BoundParticle(p)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user