QScreenRayCaster trigger y parameter needs to be "inverted": by design or bug?
Unsolved
Game Development
-
the trigger method of a QScreenRayCaster needs to receive the y-ccordinate of the mouse pointer as subtracted from the viewport height.
I would have expected a screen ray caster to take a possible OGL different coordinate system origin position into account.
Thus: bug or by design?
-
@e2002e yes, this is how the mouse pointer y coordinate is delivered but when I use it to screenraycast it hits on the opposite vertical side of the entity.
I subtract the mouse pointer y from the viewport height now to have a QScreenRayCast hit as expected.