I'm creating a 2D multiplayer game in javascript, but I'm actually struggling with a problem (not really a problem, but I don't know how to do). I'm actually trying to make my player (circle hitbox) collide with an object that have a rotated square shaped hitbox.
This is the informations that I have :
- Player positions (x and y)
- Player hitbox radius (value)
- Object positions (x and y)
- Object hitbox width and height (values)
- Object inclination (in radians)
Can someone help me by explain me how can I do these kind of things ?