/** * Constructs the chase camera, and registers inputs * if you use this constructor you have to attach the cam later to a spatial * doing spatial.addControl(chaseCamera); * @param cam the application camera * @param inputManager the inputManager of the application to register inputs */ public ChaseCamera(Camera cam, InputManager inputManager) { this(cam); registerWithInput(inputManager); }
/** * Constructs the chase camera, and registers inputs * @param cam the application camera * @param target the spatial to follow * @param inputManager the inputManager of the application to register inputs */ public ChaseCamera(Camera cam, final Spatial target, InputManager inputManager) { this(cam, target); registerWithInput(inputManager); }
chaser.registerWithInput(inputManager); initInputs();
chaser.registerWithInput(inputManager); chaser.setSmoothMotion(true); chaser.setMaxDistance(50);
/** * Constructs the chase camera, and registers inputs * @param cam the application camera * @param target the spatial to follow * @param inputManager the inputManager of the application to register inputs */ public ChaseCamera(Camera cam, final Spatial target, InputManager inputManager) { this(cam, target); registerWithInput(inputManager); }
/** * Constructs the chase camera, and registers inputs * if you use this constructor you have to attach the cam later to a spatial * doing spatial.addControl(chaseCamera); * @param cam the application camera * @param inputManager the inputManager of the application to register inputs */ public ChaseCamera(Camera cam, InputManager inputManager) { this(cam); registerWithInput(inputManager); }
/** * Constructs the chase camera, and registers inputs * if you use this constructor you have to attach the cam later to a spatial * doing spatial.addControl(chaseCamera); * @param cam the application camera * @param inputManager the inputManager of the application to register inputs */ public ChaseCamera(Camera cam, InputManager inputManager) { this(cam); registerWithInput(inputManager); }
/** * Constructs the chase camera, and registers inputs * @param cam the application camera * @param target the spatial to follow * @param inputManager the inputManager of the application to register inputs */ public ChaseCamera(Camera cam, final Spatial target, InputManager inputManager) { this(cam, target); registerWithInput(inputManager); }