Yay! Raycasts are cool. Just need a C++ port now :p Not that I'm working on any Box2D projects ATM.
But just for other users out there...raycasts are quite useful for (infinitely) fast projectiles...perhaps sniper rifles, or laser guns. You don't need to create an object and simulate the physics, just apply the damage directly (common in many FPSs). I'd also use it for enemy line-of-sight. You can use it to check if something is visible to an enemy by casting a ray from the enemies head, towards the player, for example, and see if anything is blocking its sight. *Maybe* useful for path-finding too? Anyways, lots of cool uses, so this is a great addition.
But just for other users out there...raycasts are quite useful for (infinitely) fast projectiles...perhaps sniper rifles, or laser guns. You don't need to create an object and simulate the physics, just apply the damage directly (common in many FPSs). I'd also use it for enemy line-of-sight. You can use it to check if something is visible to an enemy by casting a ray from the enemies head, towards the player, for example, and see if anything is blocking its sight. *Maybe* useful for path-finding too? Anyways, lots of cool uses, so this is a great addition.