Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Apply turn physics to the last part of an unclamped turn #119

Open
metacubed opened this issue Dec 29, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@metacubed
Copy link

In the current implementation, if "unclampedResetAngle" is less than the turn angle, then the entire turn will have no physics (reset).

Instead, we could apply turn physics to only the last part of the turn.

Consider a new config property "clampAngle". It will be set to a small angle value, say, 40°.

Now, if the character makes a turn of 150°, then the first 110° will have no physics (reset). But, physics will start applying to the remaining 40° ("clampAngle") of the turn.

This will provide more realism as you will still see proper physics at the end of the turn.

@DaymareOn DaymareOn self-assigned this May 7, 2024
@DaymareOn DaymareOn added enhancement New feature or request good first issue Good for newcomers labels May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants