Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add defaults in Project Settings
Added a snap deadzone and default snap turning settings to our project settings:
Add user settings system to save user preference
Added a user settings class that saves user settings to
user://xtools_user_settings.json
There is also a default UI class that allows developers to just embed the scene into something of their choosing:
In our demo application we nicely integrate this UI on a pedestal:
But similarly we could embed access to this UI in game. We may add a demo for this where the UI can be access on the players wrist or something like that. That's for another day though.
By default have turn movement adhere to user/system settings
Our
MovementTurn
class now has a new turn mode setting that replaces the smooth tickbox:This can be:
Add user setting for player height adjustment
I also added a height adjust user setting:
This simply increases/decreases the player height calculated in the
PlayerBody
node. This allows you to play games designed for standing up while being seated, or if you're a small/tall person adjust your in game size to make the experience more comfortable.edit I also added a project setting "player standard height". This setting allows the developer to set the height of the player they are designing the game for.
There is now a button on the user settings UI that takes the current height of the player based on the camera position, compares it to the "standard height" and calculates an adjustment value that makes the player the "standard" height.