You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
498 B
19 lines
498 B
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 jjg64 on 19/09/17.
|
|
*/
|
|
public class BoatHighlight extends Subject3D {
|
|
|
|
public BoatHighlight(double radius, Color color) {
|
|
super(new Cylinder(radius,0),0);
|
|
getMesh().getTransforms().add(new Rotate(-90, Rotate.X_AXIS));
|
|
getMesh().setMaterial(new PhongMaterial(color));
|
|
}
|
|
}
|