playMaker

Author Topic: ScreenPick distance issue [SOLVED]  (Read 1669 times)

escpodgames

  • Hero Member
  • *****
  • Posts: 686
    • View Profile
    • Assets
ScreenPick distance issue [SOLVED]
« on: March 19, 2013, 03:43:14 AM »
Hey guys,

Been having an issue with the screenpick distance not working if the user clicks on the correct gameobject on the right layer but then clicks on the empty screen OR an object not of the layer, the distance stops updating from that point on.

Any thoughts? Is this working as intended?

Cheers
Andrew
« Last Edit: March 19, 2013, 05:17:04 PM by LampRabbit »

escpodgames

  • Hero Member
  • *****
  • Posts: 686
    • View Profile
    • Assets
Re: ScreenPick distance issue
« Reply #1 on: March 19, 2013, 01:46:10 PM »
Next issue - The screen pick only seems to work on colliders and not geometry ... is this also true?

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2488
  • Yup.
    • View Profile
    • Cleverous
Re: ScreenPick distance issue
« Reply #2 on: March 19, 2013, 01:51:24 PM »
Why use Screen Pick instead of Mouse Pick?

escpodgames

  • Hero Member
  • *****
  • Posts: 686
    • View Profile
    • Assets
Re: ScreenPick distance issue
« Reply #3 on: March 19, 2013, 04:19:13 PM »
Good point! the distance works with MousePick but is still collider based hmmm .... I swear it wasen't last time I used it :S

Can anyone confirm I'm not going mad?
« Last Edit: March 19, 2013, 04:32:16 PM by LampRabbit »

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2488
  • Yup.
    • View Profile
    • Cleverous
Re: ScreenPick distance issue
« Reply #4 on: March 19, 2013, 05:00:36 PM »

escpodgames

  • Hero Member
  • *****
  • Posts: 686
    • View Profile
    • Assets
Re: ScreenPick distance issue
« Reply #5 on: March 19, 2013, 05:16:36 PM »
Got it working in my game and also in your test scene, with a little reading and hitting my head against the wall ..... of course raycasts need colliders doh.

All working fine! Thx Lane for your help :)