The First Person Controller behavior has been expanded with several new features:
Mouse and keyboard:
- Support for WASD / ZQSD, arrow keys, and Space for jumping.
- Left-click to capture the mouse and Escape to release it.
- Raw mouse input support
- Added an option to enable unadjusted mouse movement when pointer lock is active.
Gravity and jumping:
- Gravity can now be enabled or disabled.
- Added configurable jumping with a customizable jump impulse.
- Configurable gravity strength.
Custom controls:
- Default controls can be disabled.
- Added actions to simulate forward, backward, left, right, and jump inputs, allowing fully custom control schemes.
New conditions, actions, and expressions:
- Added conditions to check the state of the new features.
- Added actions to modify the new settings at runtime.
- Added expressions to access controller properties such as gravity, jump settings, ground elevation, and yaw.
- Added a Ground Z Elevation setting to define the height where the player lands.