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

Fix Arrows Tunneling Through Enemies #198

Merged
merged 2 commits into from
Jan 5, 2021

Conversation

joshuaskelly
Copy link
Collaborator

Summary

Fixes issue with enemy versus arrow collision. Crux of the issue is the raycast detection against enemy hit boxes was flipped, so we'd only detect collisions once the arrow had passed through the enemy. If the enemy was close to a wall it would register as a world hit.

…lipped the wrong way which resulted the hit preferring the world if an enemy and world was hit in a single frame.
@joshuaskelly joshuaskelly requested a review from Interrupt January 5, 2021 22:30
@joshuaskelly joshuaskelly merged commit 8d0e851 into master Jan 5, 2021
@joshuaskelly joshuaskelly deleted the fixes/arrows-tunneling-through-enemies branch January 5, 2021 23:10
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