The point or points at which two or more shapes cross or overlap one another.
4
votes
2answers
65 views
how to calculate intersection time and place of multiple moving arcs
I have rocks orbiting moons, moons orbiting planets, planets orbiting suns, and suns orbiting black holes, and the current system could have many many layers of orbitage.
the position of any object ...
0
votes
0answers
93 views
Efficient mapping layout in 2D side-scroller, and collisions between character and the world
I haven't touched Visual Studio for a couple months now, but I was playing a game from the '90s toady and had an epiphany: I was looking for something what i didn't need, and I wasn't using what I ...
0
votes
1answer
121 views
ray polygon intersection
Hi, I am looking for an elegant way to do ray and polygon intersections in 2d. I don't care about languages.
Now what I'm doing is taking a line that lies on the ray (with a screen length) and ...
1
vote
2answers
161 views
Segment-Cylinder intersection
What is the complete code (C#, pseudo, does not matter) for calculating the resulting segment (or its absence) for the intersection of the segment and the cylinder?
The segment is defined by ...
2
votes
2answers
198 views
What is a technique for 2D ray-box intersection that is suitable for old console hardware?
I'm working on a Sega Genesis homebrew game (it has a 7mhz 68000 CPU). I'm looking for a way to find the intersection between a particle sprite and a background tile. Particles are represented as a ...
2
votes
4answers
106 views
Ray Triangle Intersection issue
I'm trying to perform ray triangle intersection on a mesh made of triangles. The below code seems to work fine but only about 50% of the time. The ray often gets into positions where no intersection ...
4
votes
1answer
846 views
How to Calculate the Contact Point between Ray and Plane
Is there any quick way to find the intersection point between Plane and Ray?
3
votes
1answer
461 views
Closest point on an ellipsoid
I need to know how to get the closest point on the surface of an ellipsoid to another point.
I had an idea, but apparently i was wrong, and oversimplfying.
What i did was squash the ellipsoid and ...
4
votes
1answer
411 views
Ellipsoid v. Box collision detection
I'm trying to write some collision detection code.
ATM i have the code properly resolving Ellipsoid v. Ellipsoid collisions, and Box v. Box collisions, but Ellipsoid v. Box collisions doesnt work.
...
2
votes
2answers
678 views
Find meeting point of 2 objects in 2D, knowing (constant) speed and slope
I have a gun which fires a projectile that has to hit an enemy. The problem is that the gun has to be automatic, i.e. - choose the angle in which it has to shoot, so that the projectile hits the enemy ...
3
votes
3answers
2k 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
1k views
Triangle-Plane intersection in 3D space
I would like to clip a triangle if its bounds lie partially out of a cube for this I guess I would need some kind of Triangle Plane intersection code, I'm not well versed with math but I do have the ...
7
votes
5answers
670 views
How to determine which cells in a grid intersect with a given triangle?
I'm currently writing a 2D AI simulation, but I'm not completely certain how to check whether the position of an agent is within the field of view of another.
Currently, my world partitioning is ...