Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Mupp on April 03, 2021, 02:56:10 PM

Title: Screen Pick, store point on miss
Post by: Mupp on April 03, 2021, 02:56:10 PM
I want to get the closest point on miss. Is there a way to get the point there the ray ends on miss?
Title: Re: Screen Pick, store point on miss
Post by: Mupp on April 11, 2021, 08:29:31 PM
bump
Title: Re: Screen Pick, store point on miss
Post by: Alex Chouls on April 11, 2021, 09:06:20 PM
If I understand what you want, you could use Screen To World Point, which converts a screen position to a world position at a set distance.
Title: Re: Screen Pick, store point on miss
Post by: Mupp on April 12, 2021, 08:39:45 AM
Ok, I get it. If the ray misses you use this action to get a point under the pointer at the same distance as the max ray length.
Title: Re: Screen Pick, store point on miss
Post by: Alex Chouls on April 12, 2021, 02:58:27 PM
Exactly, sorry, I forgot to be explicit about setting the distance to max ray length. But you got it :)