RaylibDisplay.mouseRay

Get a ray from the mouse position relative to the camera.

class RaylibDisplay
const @trusted
Ray
mouseRay
()

Parameters

inverted bool

Shoots the ray behind the camera. It might be useful to check both the normal and inverted ray the ray doesn't recognize camera height properly.

Meta