Handles input and movement of a character in the game. Acts as a simple 'front end' for the bookkeeping and math of the character controller.
More...
|
| CharacterControllerInput (Space owningSpace, vxCamera3D camera, vxEngine Engine) |
| Constructs the character and internal physics character controller.
|
|
void | Activate () |
| Gives the character control over the Camera and movement input.
|
|
void | Deactivate () |
| Returns input control to the Camera.
|
|
void | Update (float dt, KeyboardState previousKeyboardInput, KeyboardState keyboardInput, GamePadState previousGamePadInput, GamePadState gamePadInput) |
| Handles the input and movement of the character.
|
|
|
CharacterController | CharacterController |
| Physics representation of the character.
|
|
|
vxCamera3D | Camera [get] |
| Gets the camera to use for input.
|
|
CharacterCameraControlScheme | CameraControlScheme [get] |
| Gets the camera control scheme used by the character input.
|
|
bool | IsActive [get] |
| Gets whether the character controller's input management is being used.
|
|
Space | Space [get] |
| Owning space of the character.
|
|
Handles input and movement of a character in the game. Acts as a simple 'front end' for the bookkeeping and math of the character controller.
◆ CharacterControllerInput()
VerticesEngine.Controllers.CharacterControllerInput.CharacterControllerInput |
( |
Space | owningSpace, |
|
|
vxCamera3D | camera, |
|
|
vxEngine | Engine ) |
Constructs the character and internal physics character controller.
- Parameters
-
owningSpace | Space to add the character to. |
camera | Camera to attach to the character. |
game | The running game. |
◆ Update()
void VerticesEngine.Controllers.CharacterControllerInput.Update |
( |
float | dt, |
|
|
KeyboardState | previousKeyboardInput, |
|
|
KeyboardState | keyboardInput, |
|
|
GamePadState | previousGamePadInput, |
|
|
GamePadState | gamePadInput ) |
Handles the input and movement of the character.
- Parameters
-
dt | Time since last frame in simulation seconds. |
previousKeyboardInput | The last frame's keyboard state. |
keyboardInput | The current frame's keyboard state. |
previousGamePadInput | The last frame's gamepad state. |
gamePadInput | The current frame's keyboard state. |
The documentation for this class was generated from the following file:
- /github/workspace/src/VerticesEngine/src.shared/Cameras/Controllers/CharacterControllerInput.cs