Re: How do I visualize raycasting?
#2Hey 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.
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.
Uniflare
CRYENGINE Technical Community Manager
Here to help the community and social channels grow and thrive.
My personal belongings;
Beginner Guides | My GitHub | Splash Plugin
CRYENGINE Technical Community Manager
Here to help the community and social channels grow and thrive.
My personal belongings;
Beginner Guides | My GitHub | Splash Plugin
Re: How do I visualize raycasting?
#3e.g:
Press F to draw line from camera into the direction you are looking.

CTRL + v into flowgraph in order to paste.
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">
<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>