本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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();
}
示例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));
}
示例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
}
示例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();
}
示例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);
}
示例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);
}
示例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();
}
示例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();
}
示例14: SpringDragExample
import com.jme3.app.FlyCamAppState; //导入依赖的package包/类
public SpringDragExample(EntityData entityData){
super(new FlyCamAppState(), new ESBulletState(entityData));
this.entityData = entityData;
}
示例15: CollisionExample
import com.jme3.app.FlyCamAppState; //导入依赖的package包/类
public CollisionExample(EntityData entityData){
super(new FlyCamAppState(), new ESBulletState(entityData));
this.entityData = entityData;
}