Game Development Community

Is it possible to get the hit location of a cast ray?

by Chris Hine · in Torque Game Engine · 05/18/2004 (6:13 am) · 2 replies

Hi, i'm looking to script in an rpg style click and your character walks to the nearest node and i'm not sure if this is possible without editing the sdk src, could anyone tell me how to get the hit location in script/if its possible? thanks everyone for their help so far.

#1
05/18/2004 (6:31 am)
%hitInfo = containerRayCast(%from, %to, TypeMask, ExcludedTypes);
//%hitInfo now contains "object x y z";
#2
05/18/2004 (7:23 am)
Brilliant, thats just what i needed. Thanks :)