The rectangles tag has no wiki summary.
1
vote
1answer
48 views
Odd offset bug in Farseer/XNA/C#
So I'm using Farseer to create an immovable object:
[...]
private Body body;
public Immovable(World world, ContentManager c, String s, int posx, int posy, int w, int h, String user_data)
{
...
0
votes
0answers
77 views
2D OBB Collision Response: Problem finding the MTV/MTD via SAT
I've been working on getting collision detection and collision response into my game project using the Separating Axis Theorem. Thanks to George Clingerman's and other code examples from over a year ...
0
votes
0answers
70 views
Any way to optimize testing each bullet for each enemy in shoot em' ups? [closed]
Possible Duplicate:
Is there a way to increase the collision check efficiency of a system of n objects?
Lately I have been making a shoot em' up, and for collision detection I would use ...
1
vote
2answers
174 views
Reference a single 2d Rectangle in an array
What I am attempting to do probably has a very simple answer but I can't make heads or tails of it no matter how hard I try. Provided I'm a newb.
What I am trying to do is after I create a grid of ...
0
votes
3answers
1k views
How to rotate a rectangle?
I can easily rotate sprites using the Draw method. However I would like to simply rotate a Rectangle (the structure) so that I can get the coordinate of the four corners of the rectangle. How can I do ...
3
votes
3answers
1k 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 ...
3
votes
1answer
530 views
Ray-plane intersection to find the Z of the intersecting point
I have a rectangle in 3d space (p1, p2, p3, p4) and when the mouse rolls over it I need to calculate the exact Z of the point on the rect, given the mouse coordinates (x, y).
Would a Ray-plane ...