Page 1 of 1

How do I visualize raycasting?

Posted: Thu Jan 03, 2019 3:43 am
by Jungle
How do I visualize raycasting?

Re: How do I visualize raycasting?

Posted: Fri Feb 08, 2019 5:18 pm
by Cry-Flare
Hey there, you can use the console command "p_draw_helpers y".
You can see the other flags you can combine with this command such as 'y' by using the Console Variable window under the Help menu in Sandbox.

Re: How do I visualize raycasting?

Posted: Fri Apr 05, 2019 1:04 pm
by Cry-Chris
Press F to draw line from camera into the direction you are looking.

CTRL + v into flowgraph in order to paste.

Code: Select all

<Graph Description="" Group="asd">
<Node Id="270" Class="Physics:RayCastCamera" pos="3366,2412,0">
<Inputs offset="0,0,0" maxLength="500" ObjTypes="287" IgnoredEntity="0"/>
<Node Id="275" Class="Debug:Draw:Line" pos="3726,2322,0">
<Inputs Pos1="0,0,0" Pos2="0,0,0" Dir="0,0,0" Length="0" Color="0,0,0" Time="10"/>
<Node Id="277" Class="Debug:InputKey" pos="3096,2394,0">
<Inputs entityId="0" Key="f" NonDevMode="0"/>
<Node Id="280" Class="Camera:GetTransform" pos="3366,2340,0">
<Inputs />
<Edge nodeIn="275" nodeOut="270" portIn="Draw" portOut="hitpoint" enabled="1"/>
<Edge nodeIn="275" nodeOut="270" portIn="Pos2" portOut="hitpoint" enabled="1"/>
<Edge nodeIn="270" nodeOut="277" portIn="go" portOut="Pressed" enabled="1"/>
<Edge nodeIn="280" nodeOut="277" portIn="Get" portOut="Pressed" enabled="1"/>
<Edge nodeIn="275" nodeOut="280" portIn="Pos1" portOut="Pos" enabled="1"/>