Lines Matching refs:player
68 private CharacterControl player;
155 // We set up collision detection for the player by creating
159 // We also put the player in its starting position.
161 player = new CharacterControl(capsuleShape, 0.05f);
162 player.setJumpSpeed(20);
163 player.setFallSpeed(30);
164 player.setGravity(30);
165 player.setPhysicsLocation(new Vector3f(0, 10, 0));
167 // We attach the scene and the player to the rootnode and the physics space,
170 bulletAppState.getPhysicsSpace().add(player);
200 player.jump();
206 * We check in which direction the player is walking by interpreting
208 * The setWalkDirection() command is what lets a physics-controlled player walk.
209 * We also make sure here that the camera moves with player.
220 player.setWalkDirection(walkDirection);
221 cam.setLocation(player.getPhysicsLocation());