In collision detection problems, the challenge is to determine when shapes intersect each other.

learn more… | top users | synonyms

3
votes
0answers
28 views

Ways of speeding up this python implementation of SAT (Separating axis theorem)

A project I was working on required the usage of the Separating Axis Theorem to detect collisions between two convex polygons in real time. So I implemented a basic class (...
8
votes
2answers
129 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 ...
3
votes
5answers
251 views

Detecting collision of two divs

I have two divs as seen in this JSFiddle. To recreate the problem, keep clicking on the Gray container till both divisions touch each other. The purpose is to ...
6
votes
2answers
202 views

Performance of collision detection in a grid

I have fairly simple collision checking and handling Python code which is currently bottlenecking my performance quite a bit. I haven't done too much coding in python and I'm quite sure there's ...
14
votes
3answers
2k views

Overlapping rectangles

I received the following question in a technical interview today (for a devops/SRE position): Write a function which returns true if the two rectangles passed to it as arguments would overlap if ...
2
votes
1answer
108 views

Java Pong Game Collision between bat and ball

I have a very simple Pong game that I've built in Java. The code is quite long so I've decided to focus this question on the collision that occurs with the ball and the bat and also the effects in the ...
2
votes
0answers
101 views

Collision System in Pong-like game - How good is this code? (Blitzmax)

I am writing a game like Pong. Therefor I am using an entity system approach, so I use component based design. The hardest part until now was to write the collision system. As I just began with the ...
3
votes
1answer
92 views

Collision detection accuracy

How do you guys think I can improve the code for collision detection on my website asteroidfield.eu5.org? The current code is ...
0
votes
1answer
125 views

My second attempt at canvas spatial grid collision? Did I get it?

After posting my first question and my first attempt which you can see here, My first attempt at canvas spatial grid collision? Please be honest! I have re-written it to try and implement what the ...
3
votes
1answer
139 views
1
vote
1answer
80 views

Breakout-like game in JS

I've made a small breakout game, so far with one level. My plan is to expand it so that it has a level editor, but for now I wanted to make sure that everything is currently looking well-designed. I ...
5
votes
1answer
306 views

Collision-checking optimizations

If I'm working in a 2D environment and have hundreds of objects, brute force collision-checking would be out of the question, but would my method below work? For example, let's say I have a ...
10
votes
2answers
311 views

Artifact collision in plane module

Here's something I tried putting together as I'm learning. Critiques on anything are welcome. There's also a logic bug in the Plane module I can't identify. The long and the short are that it takes ...
2
votes
1answer
5k views

Java Slick 2D Collision Detection Methodology

I have a collision detection for terrain setup (non-terrain is handled with a quadtree I implemented apart from this) and I was wondering how others have done it compared to mine and what I could ...
1
vote
1answer
159 views

Does this intersection algorithm work like it's supposed to?

and can I make it more efficient? It's to test the collision between a ray and a sphere. ...