热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

如何使用com.jme3.input.FlyByCamera构造函数及其代码示例详解

本文整理了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 );

推荐阅读
author-avatar
一个幼儿女教师上
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有