decomm">// main loop</span><br/>
	<span class="codekeyw">while</span> (<span class="codekeyw">true</span>) {<br/>
	&nbsp;&nbsp;&nbsp;&nbsp;<span class="codeclass">Physics</span>::<span class="codefunc">Update</span>();<br/>
	}<br/>
	<br/>
</code>

<p>
	Here's how we do raycasts. Let's do one from the render view.
</p>

<code>
	auto pos = Render::GetViewPositon();<br/>
	auto rot = Render::GetViewRotation();<br/>
	<br/>
	// convert rotation to normal vector<br/>
	vec3 dir = rot * DIRECTION_FORWARD;<br/>
	<br/