Raycast in Torque 2D?
by Bruce Morick · in Torque 2D Beginner · 10/19/2015 (11:46 am) · 4 replies
Is there a function like Torque 3D raycast within Torque 2D? I have looked and cannot find anything like it.
About the author
#3
10/20/2015 (3:50 pm)
@Bruce : If you want a clear example of how to use different picking solutions (Point,Area,Circle,Ray), take a look at the PickingToy included in the T2D sandbox project.
#4
10/20/2015 (5:58 pm)
@Simon and Richard: Thanks a lot - Guess I didn't search good enough. I never thought to look at PICK for a raycast.
Torque Owner Richard Ranft
Roostertail Games
ConsoleMethodWithDocs(Scene, pickRay, ConsoleString, 4, 9, (startx/y, endx/y, [sceneGroupMask], [sceneLayerMask], [pickMode] ))
Found in Scene_ScriptBinding.h with a good old search of the source....