private void createCameraMotion() { CameraNode camNode = cinematic.bindCamera("topView", cam); camNode.setLocalTranslation(new Vector3f(0, 50, 0)); camNode.lookAt(teapot.getLocalTranslation(), Vector3f.UNIT_Y); CameraNode camNode2 = cinematic.bindCamera("aroundCam", cam); path = new MotionPath(); path.setCycle(true); path.addWayPoint(new Vector3f(20, 3, 0)); path.addWayPoint(new Vector3f(0, 3, 20)); path.addWayPoint(new Vector3f(-20, 3, 0)); path.addWayPoint(new Vector3f(0, 3, -20)); path.setCurveTension(0.83f); cameraMotionEvent = new MotionEvent(camNode2, path); cameraMotionEvent.setLoopMode(LoopMode.Loop); cameraMotionEvent.setLookAt(model.getWorldTranslation(), Vector3f.UNIT_Y); cameraMotionEvent.setDirectionType(MotionEvent.Direction.LookAt); }
camNode.setControlDir(ControlDirection.SpatialToCamera); camNode.setEnabled(false); path = new MotionPath(); path.setCycle(true); path.addWayPoint(new Vector3f(20, 3, 0));
createScene(); cam.setLocation(new Vector3f(8.4399185f, 11.189463f, 14.267577f)); path = new MotionPath(); path.addWayPoint(new Vector3f(10, 3, 0)); path.addWayPoint(new Vector3f(10, 3, 10));
camNode.lookAt(new Vector3f(0, 0.5f, 0), Vector3f.UNIT_Y); MotionPath path = new MotionPath(); path.addWayPoint(new Vector3f(1.1f, 1.2f, 2.9f)); path.addWayPoint(new Vector3f(0f, 1.2f, 3.0f));
rootNode.attachChild(bell); MotionPath track = new MotionPath();
rootNode.attachChild(bell); MotionPath track = new MotionPath();
rootNode.attachChild(bell); MotionPath track = new MotionPath();
private MotionEvent getMotionEvent(PathInstanceConfig track, Spatial attachedSpatial) { MotionPath path = new MotionPath(); path.setCycle(track.cycle); AnimWaypointsConfig waypointInfo = AnimWaypointsConfig.getMainConfig();
ear3 = makeEar(rootNode, new Vector3f(20, 0 ,0)); MotionPath track = new MotionPath();
camNode = bindCamera(CAMERA_NAME, cam); camNode.setControlDir(ControlDirection.SpatialToCamera); final MotionPath path = new MotionPath(); path.setCycle(false);