domenica 31 luglio 2016

Day 156: Collision testing

Today I tested the collision detector. Or at least I started to, because I've not tested plane collisions yet, and also I've just tested if the collisions occur, not if the contact point is correct.
I'll probably do these things tomorrow.

So, today I checked sphere-sphere, box-box and box-sphere collisions. Each one of them uses a different technique, so it is a very good result that all of them are working nicely.

This testing also forced me to put together different parts of the engine, and I found problems and things that needed to be changed, and it's good to found them early on. I also spent a bit of time fixing a bug in the box-box collision, which also allowed me to better understand the SAT.

In the gif you can see 2 spheres and 2 boxes, and how well the collision engine detects the collisions.


Nessun commento:

Posta un commento