Skip to content

Improve collision check by rotating car hitbox - #10

Open
MathomJohnson wants to merge 1 commit into
mainfrom
codex/investigate-car-hitbox-interaction-with-obstacles
Open

Improve collision check by rotating car hitbox#10
MathomJohnson wants to merge 1 commit into
mainfrom
codex/investigate-car-hitbox-interaction-with-obstacles

Conversation

@MathomJohnson

Copy link
Copy Markdown
Owner

Summary

  • add getCorners to Car for rotated rectangle math
  • update Obstacle collision logic using Separating Axis Theorem

Testing

  • node -c classes/Car.js
  • node -c classes/Obstacle.js

https://chatgpt.com/codex/tasks/task_e_685ca63a7ac08332b7db71ca21842fe9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant