当前位置: 首页>>代码示例>>Java>>正文


Java FlyCamAppState类代码示例

本文整理汇总了Java中com.jme3.app.FlyCamAppState的典型用法代码示例。如果您正苦于以下问题:Java FlyCamAppState类的具体用法?Java FlyCamAppState怎么用?Java FlyCamAppState使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


FlyCamAppState类属于com.jme3.app包,在下文中一共展示了FlyCamAppState类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: ForceFieldExample

import com.jme3.app.FlyCamAppState; //导入依赖的package包/类
public ForceFieldExample(EntityData entityData, Node root) {
    super(
            new FlyCamAppState(),
            new ShapeViewState(entityData, root),
            new SimpleLogicManagerState(entityData),
            new ESBulletState(entityData)
    );
    this.entityData = entityData;
    this.root = root;
}
 
开发者ID:jvpichowski,项目名称:ZayES-Bullet,代码行数:11,代码来源:ForceFieldExample.java

示例2: DynamicCharacterExample

import com.jme3.app.FlyCamAppState; //导入依赖的package包/类
public DynamicCharacterExample(EntityData entityData, Node root){
    super(new FlyCamAppState(),
            //this is needed for the view
            new ShapeViewState(entityData, root),
            new ESBulletState(entityData),
            //this is needed to convert the physics position to the view position
            new SimpleLogicManagerState(entityData));
    this.entityData = entityData;
    this.root = root;
}
 
开发者ID:jvpichowski,项目名称:ZayES-Bullet,代码行数:11,代码来源:DynamicCharacterExample.java

示例3: ForceProducerExample

import com.jme3.app.FlyCamAppState; //导入依赖的package包/类
public ForceProducerExample(EntityData entityData, Node root) {
    super(
            new FlyCamAppState(),
            new ShapeViewState(entityData, root),
            new SimpleLogicManagerState(entityData),
            new ESBulletState(entityData)
    );
    this.entityData = entityData;
    this.root = root;
}
 
开发者ID:jvpichowski,项目名称:ZayES-Bullet,代码行数:11,代码来源:ForceProducerExample.java

示例4: CustomCharacterExample

import com.jme3.app.FlyCamAppState; //导入依赖的package包/类
public CustomCharacterExample(EntityData entityData, Node node){
    super(new FlyCamAppState(),
            new ShapeViewState(entityData, node),
            new ESBulletState(entityData),
            new SimpleLogicManagerState(entityData));
    this.entityData = entityData;
    this.root = node;
}
 
开发者ID:jvpichowski,项目名称:ZayES-Bullet,代码行数:9,代码来源:CustomCharacterExample.java

示例5: PhysicsViewExample

import com.jme3.app.FlyCamAppState; //导入依赖的package包/类
public PhysicsViewExample(EntityData entityData, Node sceneRoot){
    super(
            new FlyCamAppState(),
            new ESBulletState(entityData),
            new SimpleLogicManagerState(entityData),
            new ShapeViewState(entityData, sceneRoot)
    );
    this.sceneRoot = sceneRoot;
    this.entityData = entityData;
}
 
开发者ID:jvpichowski,项目名称:ZayES-Bullet,代码行数:11,代码来源:PhysicsViewExample.java

示例6: initialize

import com.jme3.app.FlyCamAppState; //导入依赖的package包/类
@Override
public void initialize() {
    FlyCamAppState fa = stateManager.getState(FlyCamAppState.class);
    stateManager.detach(fa);
    VideoRecorderAppState ra;
    super.initialize();
}
 
开发者ID:rockfireredmoon,项目名称:iceclient,代码行数:8,代码来源:TestLoading.java

示例7: simpleInitApp

import com.jme3.app.FlyCamAppState; //导入依赖的package包/类
@Override
public void simpleInitApp() {
    final MatchAppState matchAppState = new MatchAppState(rootNode);
    stateManager.attach(matchAppState);

    stateManager.detach(stateManager.getState(FlyCamAppState.class));
    // stateManager.detach(stateManager.getState(DebugKeysAppState.class));
}
 
开发者ID:NintendoStuff,项目名称:worldcup,代码行数:9,代码来源:WorldCup.java

示例8: simpleInitApp

import com.jme3.app.FlyCamAppState; //导入依赖的package包/类
@Override
    public void simpleInitApp() {
    	initBulletAppState();
        assetManager.registerLoader(TextAssetLoader.class, "txt");
        flyCam.setMoveSpeed(10f);
        flyCamAppState = stateManager.getState(FlyCamAppState.class);
        
        factory = new Factory(assetManager);
        inventory = new Inventory(this);
//        bulletAppState.getPhysicsSpace().addCollisionListener(assemblyDetector);
        table = new Table("table", this, robotLocationNode);
        table.reloadXml(DEFAULT_TABLESETUP_FNAME);
        
        rootNode.attachChild(robotLocationNode);
        robot = new Robot("baxter", this, robotLocationNode);
        robot.toggleHide();
        
        demonstrator = new Demonstrator("demo", this);
        demoRecorder = new DemoRecorder(this);
        
        initLighting();
        initCamera();
        initKeys();
        initGui();
        if (flyGripper) {
            // have a gripper attached to the fly cam
        	initFlyGripper();
        }
        
//        // draw coordinate system
//        Spatial s = factory.makeUnshadedArrow("", Vector3f.UNIT_X.mult(6), 6, ColorRGBA.Red);
//        rootNode.attachChild(s);
//        s = factory.makeUnshadedArrow("", Vector3f.UNIT_Z.mult(-6), 6, ColorRGBA.Green);
//        rootNode.attachChild(s);
//        s = factory.makeUnshadedArrow("", Vector3f.UNIT_Y.mult(6), 3, ColorRGBA.Blue);
//        rootNode.attachChild(s);
        
//         stateManager.attach(new VideoRecorderAppState()); //start recording
    }
 
开发者ID:dwhuang,项目名称:SMILE,代码行数:40,代码来源:MainApp.java

示例9: main

import com.jme3.app.FlyCamAppState; //导入依赖的package包/类
public static void main(String[] args) {
	GrassTest app = new GrassTest();
	app.getStateManager().detach(app.getStateManager().getState(FlyCamAppState.class));
	AppSettings settings = new AppSettings(true);
	settings.setUseJoysticks(true);
	settings.setResolution(1280, 800);
	settings.setVSync(true);
	app.setSettings(settings);
	app.setShowSettings(true);
	app.start();
}
 
开发者ID:shamanDevel,项目名称:ProceduralTerrain,代码行数:12,代码来源:GrassTest.java

示例10: simpleInitApp

import com.jme3.app.FlyCamAppState; //导入依赖的package包/类
@Override
public void simpleInitApp() {
    flyCam.setEnabled(false);
    stateManager.detach(stateManager.getState(FlyCamAppState.class));

    inputManager.addMapping("TAB", new KeyTrigger(KeyInput.KEY_TAB));
    inputManager.addListener(this, "TAB");

    initPieMenu();

    viewPort.setBackgroundColor(ColorRGBA.White);
    inputManager.setCursorVisible(false);
}
 
开发者ID:mathiasj33,项目名称:JMEPieMenu,代码行数:14,代码来源:Main.java

示例11: initialize

import com.jme3.app.FlyCamAppState; //导入依赖的package包/类
@Override
public void initialize(AppStateManager stateManager, Application app) {
    super.initialize(stateManager, app);
    //TODO: initialize your AppState, e.g. attach spatials to rootNode
    //this is called on the OpenGL thread after the AppState has been attached
    
    root = (Node) app.getViewPort().getScenes().get(0);
    
    
    Box b = new Box(Vector3f.ZERO, 1, 1, 1);
    geom = new Geometry("Box", b);
    

    Material mat = new Material(app.getAssetManager(), "Common/MatDefs/Light/Lighting.j3md");
    geom.setMaterial(mat);
    geom.setLocalTranslation(0,2,1);
    root.attachChild(geom);
    
    DirectionalLight dl = new DirectionalLight();
    dl.setDirection(new Vector3f(-0.8f, -0.6f, -0.08f).normalizeLocal());
    dl.setColor(new ColorRGBA(1,1,1,1));
    root.addLight(dl);        
  
    app.getStateManager().getState(FlyCamAppState.class).getCamera().setMoveSpeed(30);
    app.getViewPort().setBackgroundColor(ColorRGBA.Gray);   
    
}
 
开发者ID:mifth,项目名称:JME-Simple-Examples,代码行数:28,代码来源:NewAppState.java

示例12: simpleInitApp

import com.jme3.app.FlyCamAppState; //导入依赖的package包/类
@Override
public void simpleInitApp() {
    stateManager.detach(stateManager.getState(FlyCamAppState.class));
    stateManager.detach(stateManager.getState(ResetStatsState.class));
    stateManager.detach(stateManager.getState(DebugKeysAppState.class));
    stateManager.detach(stateManager.getState(StatsAppState.class));
    final Node jaime = LoadModel();
    setupLights();
    setupCamera();
    setupFloor();
    setupCinematic(jaime);
    setupInput();
}
 
开发者ID:xbuf,项目名称:jme3_xbuf,代码行数:14,代码来源:TestJaimeJ3o.java

示例13: simpleInitApp

import com.jme3.app.FlyCamAppState; //导入依赖的package包/类
@Override
public void simpleInitApp() {
    assetManager.registerLoader(XbufLoader.class, "xbuf");

    stateManager.detach(stateManager.getState(FlyCamAppState.class));
    stateManager.detach(stateManager.getState(ResetStatsState.class));
    stateManager.detach(stateManager.getState(DebugKeysAppState.class));
    stateManager.detach(stateManager.getState(StatsAppState.class));
    final Node jaime = LoadModel();
    setupLights();
    setupCamera();
    setupFloor();
    setupCinematic(jaime);
    setupInput();
}
 
开发者ID:xbuf,项目名称:jme3_xbuf,代码行数:16,代码来源:TestJaimeXbuf.java

示例14: SpringDragExample

import com.jme3.app.FlyCamAppState; //导入依赖的package包/类
public SpringDragExample(EntityData entityData){
    super(new FlyCamAppState(), new ESBulletState(entityData));
    this.entityData = entityData;
}
 
开发者ID:jvpichowski,项目名称:ZayES-Bullet,代码行数:5,代码来源:SpringDragExample.java

示例15: CollisionExample

import com.jme3.app.FlyCamAppState; //导入依赖的package包/类
public CollisionExample(EntityData entityData){
    super(new FlyCamAppState(), new ESBulletState(entityData));
    this.entityData = entityData;
}
 
开发者ID:jvpichowski,项目名称:ZayES-Bullet,代码行数:5,代码来源:CollisionExample.java


注:本文中的com.jme3.app.FlyCamAppState类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。