Fixed collision not fading to zero
#story[1195]
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user