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

Made sliding on slope an optional feature #103

Merged
merged 1 commit into from
Mar 13, 2022

Conversation

Malcolmnixon
Copy link
Collaborator

This pull request fixes issue #102 to control whether the player slides on slopes due to gravity. In some areas slope-sliding is desirable (ski ramps) and in others it's not desired (walking ramps). This change adds an option to the GroundPhysicsSettings resource to control whether the player will stop on the slope.

Added stop_on_slope option to GroundPhysicsSettings. Modified PlayerBody to implement stop_on_slope by skewing gravity to the ground-contact slope.
@BastiaanOlij BastiaanOlij added the enhancement New feature or request label Mar 13, 2022
@BastiaanOlij BastiaanOlij added this to the 2.4.0 milestone Mar 13, 2022
@BastiaanOlij BastiaanOlij merged commit 8c20b45 into GodotVR:master Mar 13, 2022
@BastiaanOlij
Copy link
Member

Cool thanks!

@Malcolmnixon Malcolmnixon deleted the slope-sliding branch March 13, 2022 23:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants