Skip to content

fix: player no longer bounces when crossing tile boundaries fixes #18 #21

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

joshuawalker3
Copy link
Collaborator

Objective

Fixes #18
Fix issue where player bounced when crossing tile boundaries.

Solution

To solve this issue the player collider was changed to be flat on the bottom and sides and a collision margin was added to the players collider. This change introduced a new bug where there were moments in time when the player could not jump while moving or while touching walls due to how the collider interacted with the sides of tile colliders. This was solved by changing the size of the shape caster generated when the new Character Controller Bundle was created. Scale was decreased from 0.99 to 0.75.

Testing

Tested by running game with PhysicsDebugger plugin, moving character across tile boundaries, and verifying correct force vector response. Moved player against wall, verified no force vector applied while static and jumping

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.

Fix collider instantiation issue
1 participant