The rectangles tag has no wiki summary.
5
votes
2answers
4k views
How to determine collision direction between two rectangles?
I am trying to figure out how to determine the direction a collision occurs between two rectangles.
One rectangle does not move. The other rectangle has a velocity in any direction. When a collision ...
4
votes
3answers
4k views
Triangle - Rectangle Intersection in 2D
I had previously asked this for 3D but now I changed my strategy and would like to do the intersection in 2D.
The Rectangle is axis aligned and will always be in a fixed position, and has a constant ...
4
votes
1answer
221 views
Creating rectangles from the inner part of a texture2D
Ok, this may be hard to understand, but I'll do my best.
You will see that the first image is a normal mario, and the other is the result I am looking for. I'm trying to find a way to extract ...
1
vote
1answer
163 views
How can I make it so that my player object doesn't penetrate world collision when I'm holding down movement keys in that direction?
Right now I have a player object and an obstacle, both with bounding box rectangles around them. The issue is that when my player runs into this obstacle, as long as I'm holding down the movement key, ...