Dissecting CastRay... what is the variable 't' in RayInfo for?
by Kuju Manila · in Torque Game Engine · 05/30/2007 (8:16 pm) · 1 replies
I'm dissecting CastRay due to the fact I'm dealing with a problem stated here:
http://www.garagegames.com/mg/forums/result.thread.php?qt=62688
While checking the code of SceneObject's CastRay, I often see the variables currentT which holds a fixed magic number of 2.0f, and the other is the F32 t variable of RayInfo. What exactly do these variables mean? What's the magic number 2.0f for?
http://www.garagegames.com/mg/forums/result.thread.php?qt=62688
While checking the code of SceneObject's CastRay, I often see the variables currentT which holds a fixed magic number of 2.0f, and the other is the F32 t variable of RayInfo. What exactly do these variables mean? What's the magic number 2.0f for?
Torque Owner Gary Preston
As for currentT, no idea :)