Collision effect uses color.transparent instead of a custom transparent color.
This commit is contained in:
@@ -402,7 +402,7 @@ public class RaceViewController extends Controller {
|
||||
shockwave.setZ(boatModel.getPosition().getZ());
|
||||
|
||||
if(opacity <= 0) {
|
||||
shockwave.getMesh().setMaterial(new PhongMaterial(new Color(1,0,0,0)));
|
||||
shockwave.getMesh().setMaterial(new PhongMaterial(Color.TRANSPARENT));
|
||||
boat.setHasCollided(false);
|
||||
this.stop();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user