Physical Queries for the Math Challenged: Ray Casting
Hopefully, you've read my previous article on setting up the basic grid data structure and peforming collision detection. If not quickly go read the section on the grid since we'll be leveraging that data structure to perform ray casting. Ray casting is a powerful and reasonably simple technique which can be used to answer several questions about the environment....
Read morePhysical Queries for the Math Challenged: Collision Detection and Response
Following developing Forte I thought I would share some of the challenges I encountered and more importantly how I overcame them. I am what you might call a design nut more than a number wonk, so some aspects of game programming are more challenging for me. Specifically, I ran into trouble when I needed to implement collision detection and ray casting for my tile based game. If you find yourself needing a collision detection scheme to fit your game or just want a way to easily support ray casting then you've come to the right spot. In this post I'm ...
Read more