Boat now shows a fading collision effect

#story[1195]
This commit is contained in:
cbt24
2017-09-14 16:22:04 +12:00
parent f2370485a0
commit cdc7b642db
2 changed files with 40 additions and 7 deletions
@@ -0,0 +1,17 @@
package visualiser.layout;
import javafx.scene.paint.Color;
import javafx.scene.paint.PhongMaterial;
import javafx.scene.shape.Cylinder;
import javafx.scene.transform.Rotate;
/**
* Created by cbt24 on 14/09/17.
*/
public class Shockwave extends Subject3D {
public Shockwave() {
super(new Cylinder(5,0),0);
getMesh().getTransforms().add(new Rotate(-90, Rotate.X_AXIS));
getMesh().setMaterial(new PhongMaterial(new Color(0,0,0,0)));
}
}