Examples of ChaseCamera


Examples of com.jme3.input.ChaseCamera

    guiNode.detachChildNamed("Statistics View");

    camNode = new Node("Cam Node");

    flyCam.setEnabled(false);
    ChaseCamera chaseCam = new ChaseCamera(cam, camNode, inputManager);
    chaseCam.setSmoothMotion(true);
    chaseCam.setMaxDistance(100000);
    chaseCam.setMinVerticalRotation(-FastMath.PI / 2);

    rootNode.attachChild(camNode);

  }
View Full Code Here

Examples of com.jme3.input.ChaseCamera

//    float ex = ((BoundingBox) n.getWorldBound()).getYExtent();
    targetOffset.y = 2.2f;
    //reset cam
    cam.setLocation(Vector3f.ZERO);
    cam.lookAtDirection(Vector3f.UNIT_Z, Vector3f.UNIT_Y);
    chaser = new ChaseCamera(cam, n, Singleton.get().getInputController().getInputManager());
//    chaser.setUpVector(Vector3f.UNIT_Z);
//      Comment this to disable smooth camera motion
    chaser.setSmoothMotion(true);
       
        //Uncomment this to disable trailing of the camera
View Full Code Here

Examples of com.jme3.input.ChaseCamera

    // Disable the default first-person cam!
    flyCam.setEnabled(false);

    // Enable a chase cam
    chaseCam = new ChaseCamera(cam, player, inputManager);
    chaseCam.setDefaultDistance(5f);

    // CameraControl cc = new CameraControl(cam, ControlDirection.SpatialToCamera);
    // cc.setSpatial(player);
View Full Code Here

Examples of com.jme3.input.ChaseCamera

    // geom.setMaterial(WorldObject.materialForColor(assetManager, ColorRGBA.Green));
    rootNode.attachChild(geom);

    // Set-up the camera.
    flyCam.setEnabled(false);
    chaseCam = new ChaseCamera(cam, body, inputManager);
    chaseCam.setDefaultDistance(10.0f);
    chaseCam.setMaxDistance(100.0f);
    chaseCam.setInvertVerticalAxis(true);
    chaseCam.setMinVerticalRotation(-FastMath.PI / 2);
View Full Code Here

Examples of com.jme3.input.ChaseCamera

     * @param chasee
     * @param inputManager
     */
    public void setupChaseCam(Spatial chasee, InputManager inputManager) {
        flyCam.setEnabled(false);
        chaser = new ChaseCamera(cam, chasee, inputManager);
        chaser.setLookAtOffset(Vector3f.UNIT_Y.mult(5f));
        chaser.setDefaultDistance(15f);

    }
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.