Re: How do I visualize raycasting?

#3
e.g:
Press F to draw line from camera into the direction you are looking.
Image


CTRL + v into flowgraph in order to paste.

Code: Select all

<Graph Description="" Group="asd">
<Nodes>
<Node Id="270" Class="Physics:RayCastCamera" pos="3366,2412,0">
<Inputs offset="0,0,0" maxLength="500" ObjTypes="287" IgnoredEntity="0"/>
</Node>
<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>
<Node Id="277" Class="Debug:InputKey" pos="3096,2394,0">
<Inputs entityId="0" Key="f" NonDevMode="0"/>
</Node>
<Node Id="280" Class="Camera:GetTransform" pos="3366,2340,0">
<Inputs />
</Node>
</Nodes>
<Edges>
<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"/>
</Edges>
</Graph>

Who is online

Users browsing this forum: No registered users and 1 guest