Home | History | Annotate | Download | only in helloworld

Lines Matching defs:player

64   private CharacterControl player;
97 // We set up collision detection for the player by creating
101 // We also put the player in its starting position.
103 player = new CharacterControl(capsuleShape, 0.05f);
104 player.setJumpSpeed(20);
105 player.setFallSpeed(30);
106 player.setGravity(30);
107 player.setPhysicsLocation(new Vector3f(0, 10, 0));
109 // We attach the scene and the player to the rootnode and the physics space,
113 bulletAppState.getPhysicsSpace().add(player);
155 player.jump();
161 * We check in which direction the player is walking by interpreting
163 * The setWalkDirection() command is what lets a physics-controlled player walk.
164 * We also make sure here that the camera moves with player.
175 player.setWalkDirection(walkDirection);
176 cam.setLocation(player.getPhysicsLocation());