PlayMaker Help & Tips > PlayMaker Help
Mouse Pick is WRONG in "Virtual Reality Supported" Mode
jeanfabre:
Hi,
no, you have everything you need in PlayMaker, you have lots of raycast actions if you search the action browser, but I think you'll have more success with RayCastFromScreen action that you can find in the Ecosystem.
be careful with screenpoints:
https://docs.unity3d.com/ScriptReference/Camera.ScreenToWorldPoint.html
there is also an action for this: ScreenToWorldPoint
you can also try the action "screenPick"
Bye,
Jean
westingtyler:
hey, this is great, and I'll check it out. why should I 'be careful with screenpoints'? what are the dangers of screenpoints?
jeanfabre:
Hi,
screen position reference is different then mouse position, y is inverted ( bottom/top). I can't remember which one exactly, but there is a catch here somehow :)
bye,
Jean
westingtyler:
hi, on the ecosystem I can't find actions called
ScreenToWorldPoint
or
screenPick
i found RayCastFromScreen. With it, I am not sure how to cast the ray from where the mouse is on the screen, how to store the distance, or how to store the normal direction, or to store the point it hits (all of which the mouse pick can do).
andycoke:
hi westingtyler, did you manage to get to the bottom of this? I'm stuck with the same issue.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version