All Questions
7
questions
6
votes
3
answers
281
views
Intersecting rectangles on a torus
Description
Imagine a space like the arcade game Asteroids where everything wraps around right to left and bottom to top - effectively coordinates on a flat torus. The diagram shows an example of two ...
5
votes
1
answer
421
views
Simple Ellipse Collision Mini Game
I am doing an exercise to help me understand C#and OOP. The exercise is supposed to teach me about ...
13
votes
2
answers
10k
views
2D Collision Detection
I wrote this a while ago but wanted to see if I went about it the right way and if my brain is working correctly. I was thinking about these two projects the other day and I recently released the ...
2
votes
2
answers
2k
views
High performance, branchless Intersection testing: sphere-aabb & aabb-aabb
From my tests:
AABB-Sphere: 2954.8 tests per ms.
AABB-AABB: 1087.0 tests per ms.
The sphere test is almost 3 times faster, but the two intersection tests seem to perform about the same number ...
5
votes
3
answers
2k
views
Slow foreach loop to check for intersect
I'm trying to make a loop where it returns whether or not a rectangle collides and then to which coords the rectangle should move to.
I'm calling my function like this:
...
2
votes
1
answer
3k
views
Pong Game in WinForms
I've wanted to make a Pong game for awhile, so I eventually got around to it now, it didn't take that long except for the reflections which I unfortunately didn't end up being satisfied with. I wanted ...
10
votes
2
answers
1k
views
Design of physics with Collision Detection using SFML
I found out that in Visual Studio 2012, it is possible to create project of SFML easily with a template. I am not an experienced C# programmer. Hence I wanted to implement a physics component just for ...