playMaker

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

escpodgames

  • Hero Member
  • *****
  • Posts: 687
    • Assets
ScreenPick distance issue [SOLVED]
« on: March 19, 2013, 06: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, 08:17:04 PM by LampRabbit »

escpodgames

  • Hero Member
  • *****
  • Posts: 687
    • Assets
Re: ScreenPick distance issue
« Reply #1 on: March 19, 2013, 04: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: 2511
  • Mender of the past
    • Cleverous
Re: ScreenPick distance issue
« Reply #2 on: March 19, 2013, 04:51:24 PM »
Why use Screen Pick instead of Mouse Pick?
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

escpodgames

  • Hero Member
  • *****
  • Posts: 687
    • Assets
Re: ScreenPick distance issue
« Reply #3 on: March 19, 2013, 07: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, 07:32:16 PM by LampRabbit »

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: ScreenPick distance issue
« Reply #4 on: March 19, 2013, 08:00:36 PM »
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

escpodgames

  • Hero Member
  • *****
  • Posts: 687
    • Assets
Re: ScreenPick distance issue
« Reply #5 on: March 19, 2013, 08: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 :)