use of com.ardor3d.scenegraph.hint.SceneHints in project energy3d by concord-consortium.
the class Foundation method setMovePointsVisible.
public void setMovePointsVisible(final boolean visible) {
final int n = points.size();
for (int i = n - 4; i < n; i++) {
final Spatial editPoint = pointsRoot.getChild(i);
((Mesh) editPoint).setVisible(visible);
final SceneHints sceneHints = editPoint.getSceneHints();
sceneHints.setAllPickingHints(visible);
}
}
use of com.ardor3d.scenegraph.hint.SceneHints in project energy3d by concord-consortium.
the class Blinker method update.
public void update(ReadOnlyTimer timer) {
final double t = timer.getTimeInSeconds();
if (target != null && t > lastTime + 0.3) {
lastTime = t;
final SceneHints sceneHints = target.getSceneHints();
sceneHints.setCullHint(sceneHints.getCullHint() == CullHint.Always ? CullHint.Inherit : CullHint.Always);
}
}
Aggregations