Examples of detachChild()


Examples of com.ardor3d.scenegraph.Node.detachChild()

        return node;
    }

    public Node dettachFromParent(String name, Spatial child) {
        Node node = getNode(name);
        node.detachChild(child);
        return node;
    }

    public Node getNode(String name) {
        return nodes.get(name);
View Full Code Here

Examples of com.jme3.scene.Node.detachChild()

      //ARGH !! the troll in the sdk is a standard jme anim troll,
      //it does not work without being loaded by the standard animation package using animationproviders
      //so relaping it here
      Spatial troll = n.getChild("troll")
      if(troll != null){
        n.detachChild(troll);
        VisibleModel newtroll = new VisibleModel(null);
        newtroll.attachVisuals();
        newtroll.setLocalTranslation(troll.getLocalTranslation());
        n.attachChild(newtroll);
      }
View Full Code Here

Examples of com.jme3.scene.Node.detachChild()

            Node node = (Node) spatial;
            node.attachChild(geomA);
            node.attachChild(geomB);
        } else if (spatial == null && this.spatial != null) {
            Node node = (Node) this.spatial;
            node.detachChild(geomA);
            node.detachChild(geomB);
        }
        super.setSpatial(spatial);
    }
View Full Code Here

Examples of com.jme3.scene.Node.detachChild()

            node.attachChild(geomA);
            node.attachChild(geomB);
        } else if (spatial == null && this.spatial != null) {
            Node node = (Node) this.spatial;
            node.detachChild(geomA);
            node.detachChild(geomB);
        }
        super.setSpatial(spatial);
    }

    @Override
View Full Code Here

Examples of com.jme3.scene.Node.detachChild()

        if (spatial != null && spatial instanceof Node) {
            Node node = (Node) spatial;
            node.attachChild(geom);
        } else if (spatial == null && this.spatial != null) {
            Node node = (Node) this.spatial;
            node.detachChild(geom);
        }
        super.setSpatial(spatial);
    }

    @Override
View Full Code Here

Examples of com.jme3.scene.Node.detachChild()

    @Override
    protected void controlUpdate(float tpf) {
        if (myShape != body.getCollisionShape()) {
            Node node = (Node) this.spatial;
            node.detachChild(geom);
            geom = DebugShapeFactory.getDebugShape(body.getCollisionShape());
            geom.setMaterial(debugAppState.DEBUG_YELLOW);
            node.attachChild(geom);
        }
        applyPhysicsTransform(body.getPhysicsLocation(location), body.getPhysicsRotation(rotation));
View Full Code Here

Examples of com.jme3.scene.Node.detachChild()

        if (spatial != null && spatial instanceof Node) {
            Node node = (Node) spatial;
            node.attachChild(geom);
        } else if (spatial == null && this.spatial != null) {
            Node node = (Node) this.spatial;
            node.detachChild(geom);
        }
        super.setSpatial(spatial);
    }

    @Override
View Full Code Here

Examples of com.jme3.scene.Node.detachChild()

    @Override
    protected void controlUpdate(float tpf) {
        if(myShape != body.getCollisionShape()){
            Node node = (Node) this.spatial;
            node.detachChild(geom);
            geom = DebugShapeFactory.getDebugShape(body.getCollisionShape());
            geom.setMaterial(debugAppState.DEBUG_PINK);
            node.attachChild(geom);
        }
        applyPhysicsTransform(body.getPhysicsLocation(location), Quaternion.IDENTITY);
View Full Code Here

Examples of com.jme3.scene.Node.detachChild()

        if (spatial != null && spatial instanceof Node) {
            Node node = (Node) spatial;
            node.attachChild(suspensionNode);
        } else if (spatial == null && this.spatial != null) {
            Node node = (Node) this.spatial;
            node.detachChild(suspensionNode);
        }
        super.setSpatial(spatial);
    }

    private void createVehicle() {
View Full Code Here

Examples of com.jme3.scene.Node.detachChild()

        if (spatial != null && spatial instanceof Node) {
            Node node = (Node) spatial;
            node.attachChild(geom);
        } else if (spatial == null && this.spatial != null) {
            Node node = (Node) this.spatial;
            node.detachChild(geom);
        }
        super.setSpatial(spatial);
    }

    @Override
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.