Package edu.cmu.cs.stage3.alice.core

Examples of edu.cmu.cs.stage3.alice.core.Element.replaceWith()


            if (part != null) {
              edu.cmu.cs.stage3.math.Vector3 posToParent =
                ((Model) part).getPosition((edu.cmu.cs.stage3.alice.core.ReferenceFrame) part.getParent());
              edu.cmu.cs.stage3.math.Matrix33 orientToParent =
                ((Model) part).getOrientationAsAxes((edu.cmu.cs.stage3.alice.core.ReferenceFrame) part.getParent());
              part.replaceWith(model);
              if (part instanceof Model) {
                model.vehicle.set(((Model) part).vehicle.get());
                ((Model) part).vehicle.set(null);
                if (posToParent != null)
                   ((Model) model).setPositionRightNow(posToParent, (edu.cmu.cs.stage3.alice.core.ReferenceFrame) model.getParent());
View Full Code Here


        if (parents.length > 0) {
          Element child = parents[0].getChildNamed(part.name.getStringValue());
          if (child != null) {
            part.isFirstClass.set(false);
            edu.cmu.cs.stage3.math.Vector3 posToParent = ((Model) child).getPosition((edu.cmu.cs.stage3.alice.core.ReferenceFrame) parents[0]);
            child.replaceWith(part);
            if (child instanceof Model) {
              part.vehicle.set(((Model) child).vehicle.get());
              ((Model) child).vehicle.set(null);
              if (posToParent != null)
                 ((Model) part).setPositionRightNow(posToParent, (edu.cmu.cs.stage3.alice.core.ReferenceFrame) part.getParent());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.