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

Expanded upon throw and drop behavior #335

Merged
merged 1 commit into from
Nov 25, 2024

Conversation

OvercastInteractive
Copy link
Collaborator

I made a few changes to PlayerInteractionComponent that allow for finer tuning of throw and drop power, based on the carried object's mass and limited to a max power.

  • Using the object's mass in the throw and drop power provides more consistent and less chaotic behavior as very lightweight objects won't be launched at high speeds through the level and very heavy objects will only experience force up to max power.
  • Also included the option to drain stamina if throwing objects that exceed a specified throw power threshold.

This commit makes a few changes to <PlayerInteractionComponent> that allow the developer to better tune how powerful their throws and drops are, based on the carried object's mass and limited to a max power.
- Using the object's mass in the throw and drop power provides more consistent and less chaotic behavior as very lightweight objects won't be launched at lightspeed through the level and very heavy objects will only experience force up to max power.
- Also included the option to drain stamina if throwing objects that exceed a certain threshold of force when thrown.
Copy link
Owner

@Phazorknight Phazorknight left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice, appreciate this mechanic getting some tweaks and refinement.
Thank you!

@Phazorknight Phazorknight merged commit 1a057d4 into main Nov 25, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants