playMaker

Author Topic: Screen Pick, store point on miss  (Read 503 times)

Mupp

  • Full Member
  • ***
  • Posts: 167
Screen Pick, store point on miss
« 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?

Mupp

  • Full Member
  • ***
  • Posts: 167
Re: Screen Pick, store point on miss
« Reply #1 on: April 11, 2021, 08:29:31 PM »
bump

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3959
  • Official Playmaker Support
    • LinkedIn
Re: Screen Pick, store point on miss
« Reply #2 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.

Mupp

  • Full Member
  • ***
  • Posts: 167
Re: Screen Pick, store point on miss
« Reply #3 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.

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3959
  • Official Playmaker Support
    • LinkedIn
Re: Screen Pick, store point on miss
« Reply #4 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 :)