You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.1 KiB
46 lines
1.1 KiB
13 years ago
|
/*
|
||
|
* To change this template, choose Tools | Templates
|
||
|
* and open the template in the editor.
|
||
|
*/
|
||
|
package com.jme3.gde.nmgen;
|
||
|
|
||
|
import com.jme3.app.Application;
|
||
|
import com.jme3.gde.core.scene.SceneApplication;
|
||
|
import com.jme3.gde.core.scene.controller.AbstractCameraController;
|
||
|
import com.jme3.renderer.Camera;
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
* @author sploreg
|
||
|
*/
|
||
|
public class NavMeshCameraController extends AbstractCameraController {
|
||
|
|
||
|
private NavMeshToolController toolController;
|
||
|
private NavMeshController editorController;
|
||
|
private Application app;
|
||
|
|
||
|
public NavMeshCameraController(Camera cam) {
|
||
|
super(cam, SceneApplication.getApplication().getInputManager());
|
||
|
app = SceneApplication.getApplication();
|
||
|
}
|
||
|
|
||
|
public void setEditorController(NavMeshController editorController) {
|
||
|
this.editorController = editorController;
|
||
|
}
|
||
|
|
||
|
public void setToolController(NavMeshToolController toolController) {
|
||
|
this.toolController = toolController;
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public boolean useCameraControls() {
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
protected void checkClick(int button, boolean pressed) {
|
||
|
//TODO
|
||
|
}
|
||
|
|
||
|
}
|