Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: JonathanBurroughs on April 02, 2014, 04:08:01 PM

Title: [SOLVED] Raycasts
Post by: JonathanBurroughs on April 02, 2014, 04:08:01 PM
Hey all,

I'm getting some strange behaviour where no matter what object I try to emit a raycast from, nothing seems to be emitted.

I've boiled it down to an empty dummy object with a single FMS and a single state. The state is just the Raycast action calling every frame emitting 100 units from the position and rotation of the object.

I've switched the debug ray on, but I don't see it in either the Scene or Game viewports.

Is there an upper limit on how many simultaneous rays which can be cast? I have some Mouse Pick events going on elsewhere in the scene, so could they be competing?

This query is really an extension of my other post, but I felt I'd perhaps deviated from the original topic:

http://hutonggames.com/playmakerforum/index.php?topic=6888.0
Title: Re: Raycasts
Post by: jeanfabre on April 04, 2014, 04:25:45 AM
Hi,

 starts with the default action without changing anything: do you see the yellow line?

bye,

 Jean
Title: Re: Raycasts
Post by: JonathanBurroughs on April 04, 2014, 06:20:19 AM
Hey Jean,

Apologies, I should have marked this solved.

Lane helped me out in my other post:

http://hutonggames.com/playmakerforum/index.php?topic=6888.0

I wasn't specifying a direction for the raycast. As soon as I did it worked just fine.

Thanks for getting back to me though. I'll flag the thread as solved.
Title: Re: [SOLVED] Raycasts
Post by: jeanfabre on April 08, 2014, 04:46:31 AM
Hi,

 no worries :) I am glad it's sorted.

bye,

 Jean