Home | History | Annotate | Download | only in terrain

Lines Matching defs:this

45         this.flyCam.setMoveSpeed(100f);
47 this.stateManager.attach(state);
49 this.terrain= (TerrainGrid) assetManager.loadModel("TerrainGrid/TerrainGrid.j3o");
51 this.rootNode.attachChild(this.terrain);
53 TerrainLodControl control = new TerrainLodControl(this.terrain, getCamera());
55 this.terrain.addControl(control);
60 this.getCamera().setLocation(new Vector3f(0, 256, 0));
62 this.viewPort.setBackgroundColor(new ColorRGBA(0.7f, 0.8f, 1f, 1f));
101 this.initKeys();
106 this.inputManager.addMapping("Lefts", new KeyTrigger(KeyInput.KEY_A));
107 this.inputManager.addMapping("Rights", new KeyTrigger(KeyInput.KEY_D));
108 this.inputManager.addMapping("Ups", new KeyTrigger(KeyInput.KEY_W));
109 this.inputManager.addMapping("Downs", new KeyTrigger(KeyInput.KEY_S));
110 this.inputManager.addMapping("Jumps", new KeyTrigger(KeyInput.KEY_SPACE));
111 this.inputManager.addListener(this.actionListener, "Lefts");
112 this.inputManager.addListener(this.actionListener, "Rights");
113 this.inputManager.addListener(this.actionListener, "Ups");
114 this.inputManager.addListener(this.actionListener, "Downs");
115 this.inputManager.addListener(this.actionListener, "Jumps");
127 TerrainGridSerializationTest.this.left = true;
129 TerrainGridSerializationTest.this.left = false;
133 TerrainGridSerializationTest.this.right = true;
135 TerrainGridSerializationTest.this.right = false;
139 TerrainGridSerializationTest.this.up = true;
141 TerrainGridSerializationTest.this.up = false;
145 TerrainGridSerializationTest.this.down = true;
147 TerrainGridSerializationTest.this.down = false;
150 TerrainGridSerializationTest.this.player3.jump();
158 Vector3f camDir = this.cam.getDirection().clone().multLocal(0.6f);
159 Vector3f camLeft = this.cam.getLeft().clone().multLocal(0.4f);
160 this.walkDirection.set(0, 0, 0);
161 if (this.left) {
162 this.walkDirection.addLocal(camLeft);
164 if (this.right) {
165 this.walkDirection.addLocal(camLeft.negate());
167 if (this.up) {
168 this.walkDirection.addLocal(camDir);
170 if (this.down) {
171 this.walkDirection.addLocal(camDir.negate());
175 this.player3.setWalkDirection(this.walkDirection);
176 this.cam.setLocation(this.player3.getPhysicsLocation());