@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)); }
rods.setScale(spat.getWorldScale()); rods.setRotation(spat.getWorldRotation()); rods.updateGeometricState(0, false);
rods.setScale(spat.getWorldScale()); rods.setRotation(spat.getWorldRotation()); rods.updateGeometricState(0, false);