Fixed collision not fading to zero

#story[1195]
main
cbt24 8 years ago
parent cdc7b642db
commit 7d58b05e38

@ -379,7 +379,10 @@ public class RaceController extends Controller {
shockwave.setY(boat.getPosition().getY());
shockwave.setZ(boat.getPosition().getZ());
if(opacity <= 0) this.stop();
if(opacity <= 0) {
shockwave.getMesh().setMaterial(new PhongMaterial(new Color(1,0,0,0)));
this.stop();
}
else {
shockwave.getMesh().setMaterial(new PhongMaterial(new Color(1,0,0,opacity)));
opacity -= 0.1;

Loading…
Cancel
Save