Exemple #1
0
 @Override
 public void setInMotion(boolean inMotion, ReadOnlyVector3 pickPosition) {
   super.setInMotion(inMotion, pickPosition);
   if (inMotion) {
     pickPosition.subtract(getWorldTranslation(), offset);
   } else {
     if (actualCoords) {
       origin = new Vector3(getWorldTranslation());
       buildText();
       updateGeometricState(0, true);
       updateWorldTransform(true);
       updateWorldBound(true);
     }
     offset.set(Vector3.ZERO);
   }
 }
Exemple #2
0
 @Override
 public void setLocation(double x, double y, double z, boolean doEdit) {
   super.setLocation(x - offset.getX(), y - offset.getY(), z - offset.getZ(), doEdit);
 }