Game Development Community

2D Ray Casting

by Nick Gravelyn · in Torque X 2D · 10/22/2007 (3:43 pm) · 1 replies

Is there any way to do a 2D raycast in TorqueX? I have an origin, a direction, and a length and simply want to find the closest object that this ray hits. I didn't see any ray classes so I wasn't sure.

Thanks.

#1
10/24/2007 (9:43 pm)
This was also posted (and more appropriately) in the TorqueX forums.

I'll post a link here because an answer was given, just in case someone stumbles on this one.
Click here for other post