作者:一个幼儿女教师上 | 来源:互联网 | 2024-11-04 13:10
本文整理了Java中com.jme3.input.FlyByCamera.()方法的一些代码示例,展示了FlyByCamera.()的具体用法。这些代码示例主要来源于Github/Stackoverf
本文整理了Java中com.jme3.input.FlyByCamera.()
方法的一些代码示例,展示了FlyByCamera.()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。FlyByCamera.()
方法的具体详情如下:
包路径:com.jme3.input.FlyByCamera
类名称:FlyByCamera
方法名:
FlyByCamera.介绍
[英]Creates a new FlyByCamera to control the specified camera.
[中]创建新的FlyByCamera以控制指定的摄影机。
代码示例
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
@Override
public void initialize(AppStateManager stateManager, Application app) {
super.initialize(stateManager, app);
this.app = app;
if (app.getInputManager() != null) {
if (flyCam == null) {
flyCam = new FlyByCamera(app.getCamera());
}
flyCam.registerWithInput(app.getInputManager());
}
}
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
flyCam = new FlyByCamera(cam);
flyCam.setMoveSpeed(1f); // odd to set this here but it did it before
stateManager.getState(FlyCamAppState.class).setCamera( flyCam );
代码示例来源:origin: org.jmonkeyengine/jme3-core
@Override
public void initialize(AppStateManager stateManager, Application app) {
super.initialize(stateManager, app);
this.app = app;
if (app.getInputManager() != null) {
if (flyCam == null) {
flyCam = new FlyByCamera(app.getCamera());
}
flyCam.registerWithInput(app.getInputManager());
}
}
代码示例来源:origin: info.projectkyoto/mms-engine
@Override
public void initialize() {
super.initialize();
guiNode.setQueueBucket(Bucket.Gui);
guiNode.setCullHint(CullHint.Never);
loadFPSText();
loadStatsView();
viewPort.attachScene(rootNode);
guiViewPort.attachScene(guiNode);
if (inputManager != null) {
flyCam = new FlyByCamera(cam);
flyCam.setMoveSpeed(1f);
flyCam.registerWithInput(inputManager);
if (context.getType() == Type.Display) {
inputManager.addMapping(INPUT_MAPPING_EXIT, new KeyTrigger(KeyInput.KEY_ESCAPE));
}
inputManager.addMapping(INPUT_MAPPING_CAMERA_POS, new KeyTrigger(KeyInput.KEY_C));
inputManager.addMapping(INPUT_MAPPING_MEMORY, new KeyTrigger(KeyInput.KEY_M));
inputManager.addMapping(INPUT_MAPPING_HIDE_STATS, new KeyTrigger(KeyInput.KEY_F5));
inputManager.addListener(actionListener, INPUT_MAPPING_EXIT,
INPUT_MAPPING_CAMERA_POS, INPUT_MAPPING_MEMORY, INPUT_MAPPING_HIDE_STATS);
}
// call user code
simpleInitApp();
}
代码示例来源:origin: org.jmonkeyengine/jme3-core
flyCam = new FlyByCamera(cam);
flyCam.setMoveSpeed(1f); // odd to set this here but it did it before
stateManager.getState(FlyCamAppState.class).setCamera( flyCam );