Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: escpodgames on March 19, 2013, 06:43:14 AM

Title: ScreenPick distance issue [SOLVED]
Post by: escpodgames 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
Title: Re: ScreenPick distance issue
Post by: escpodgames 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?
Title: Re: ScreenPick distance issue
Post by: Lane on March 19, 2013, 04:51:24 PM
Why use Screen Pick instead of Mouse Pick?
Title: Re: ScreenPick distance issue
Post by: escpodgames 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?
Title: Re: ScreenPick distance issue
Post by: Lane on March 19, 2013, 08:00:36 PM
http://hutonggames.com/playmakerforum/index.php?topic=3414.msg15637#msg15637

Try that scene and see how it reacts on your end.
Title: Re: ScreenPick distance issue
Post by: escpodgames 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 :)