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

Need help with Rectangular Collision! #1

Open
ASlightlyOvergrownCactus opened this issue Feb 18, 2023 · 0 comments
Open

Need help with Rectangular Collision! #1

ASlightlyOvergrownCactus opened this issue Feb 18, 2023 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@ASlightlyOvergrownCactus
Copy link
Owner

ASlightlyOvergrownCactus commented Feb 18, 2023

Edit: Much later in development now, updated the help list.

Collision detection works generally, however has an offset with it. The main thing right now is fixing that offset and adding proper velocity based collision response, which should make the collision fully work with tiles. We're getting there!

In general:

  1. Need to fix collision with geometry to make it actually work. Currently there is an offset with the current system where the collision is detected about 3 tiles to the right and 2 tiles upwards. Fixed by NaClO (thx!!!)
  2. Need to add a new collision response system that would use velocity to ensure proper collision occurs with no jittering or getting stuck.
  3. Once geometry collision works, need to make sure the rotation code of the rectangle works as well. Rotation is programmed! Need to get rotational velocity with collision response working.
  4. Finally, need to add collision for other objects with the crate.
@ASlightlyOvergrownCactus ASlightlyOvergrownCactus added the help wanted Extra attention is needed label Feb 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant