Saturday, December 3, 2011

Farseer Engine

Up till this point I've played around with implementing the physics for collisions and reflections, but now I understand the complexities and what I was trying to achieve needed a little more than just axis-aligned shapes and pixel-perfect reflections. I've read up on how Farseer Physics Engine can solve all my world's problems :)
What I wasn't aware of was the Bayazit decomposition algorithm, which breaks up textures into convex polygons. This way, I wouldn't have to calculate the reflection angle based on the surrounding pixels.
I'll give the engine a crack, but for once I think there's some hope in getting these darn mechanics right, giving me more time to focus on gameplay.