/** * Update geometric state. * * @param time * The time in seconds between the last two consecutive frames (time per frame). See * {@link ReadOnlyTimer#getTimePerFrame()} * @see #updateGeometricState(double, boolean) */ public void updateGeometricState(final double time) { updateGeometricState(time, true); }
/** * Update geometric state. * * @param time * The time in seconds between the last two consecutive frames (time per frame). See * {@link ReadOnlyTimer#getTimePerFrame()} * @see #updateGeometricState(double, boolean) */ public void updateGeometricState(final double time) { updateGeometricState(time, true); }
@Override protected void updateChildren(final double time) { if (_children == null) { return; } for (int i = 0, max = Math.min(_childMask.length(), _children.size()); i < max; i++) { if (_childMask.get(i)) { final Spatial child = _children.get(i); if (child != null) { child.updateGeometricState(time, false); } } } }
@Override protected void updateChildren(final double time) { if (_children == null) { return; } for (int i = 0, max = Math.min(_childMask.length(), _children.size()); i < max; i++) { if (_childMask.get(i)) { final Spatial child = _children.get(i); if (child != null) { child.updateGeometricState(time, false); } } } }
@Override protected void updateChildren(final double time) { for (int i = getNumberOfChildren() - 1; i >= 0; i--) { final Spatial pkChild = getChild(i); if (pkChild != null) { pkChild.updateGeometricState(time, false); } } }
@Override protected void updateChildren(final double time) { for (int i = getNumberOfChildren() - 1; i >= 0; i--) { final Spatial pkChild = getChild(i); if (pkChild != null) { pkChild.updateGeometricState(time, false); } } }
@Override public void targetDataUpdated(final InteractManager manager) { final Spatial target = manager.getSpatialTarget(); if (target != null) { target.updateGeometricState(0); } _handle.setScale(calculateHandleScale(manager)); }
@Override public void targetDataUpdated(final InteractManager manager) { final Spatial target = manager.getSpatialTarget(); if (target == null) { _handle.setRotation(Matrix3.IDENTITY); } else { target.updateGeometricState(0); // update arrow rotations from target if (_interactMatrix == InteractMatrix.Local) { _handle.setRotation(target.getWorldRotation()); } else { _handle.setRotation(Matrix3.IDENTITY); } } _handle.setScale(calculateHandleScale(manager)); }
@Override public void targetDataUpdated(final InteractManager manager) { final Spatial target = manager.getSpatialTarget(); if (target == null) { _handle.setRotation(Matrix3.IDENTITY); } else { target.updateGeometricState(0); // update arrow rotations from target if (_interactMatrix == InteractMatrix.Local) { _handle.setRotation(target.getWorldRotation()); } else { _handle.setRotation(Matrix3.IDENTITY); } } _handle.setScale(calculateHandleScale(manager)); }
@Override public void targetDataUpdated(final InteractManager manager) { final Spatial target = manager.getSpatialTarget(); if (target == null) { _handle.setRotation(Matrix3.IDENTITY); } else { target.updateGeometricState(0); // update arrow rotations from target if (_interactMatrix == InteractMatrix.Local) { _handle.setRotation(target.getWorldRotation()); } else { _handle.setRotation(Matrix3.IDENTITY); } } _handle.setScale(calculateHandleScale(manager)); }
@Override public void targetDataUpdated(final InteractManager manager) { final Spatial target = manager.getSpatialTarget(); if (target == null) { setRingRotations(Matrix3.IDENTITY); } else { target.updateGeometricState(0); // update ring rotations from target if (_interactMatrix == InteractMatrix.Local) { setRingRotations(target.getWorldRotation()); } else { setRingRotations(Matrix3.IDENTITY); if (_lastRing != null) { _lastRing.setRotation(_rotateStore); } } } _handle.setScale(calculateHandleScale(manager)); }
final Spatial child = getChild(i); if (child != null) { child.updateGeometricState(_lastTime, false);
final Spatial child = getChild(i); if (child != null) { child.updateGeometricState(0, false);