playMaker

Author Topic: [SOLVED] Raycasts  (Read 2086 times)

JonathanBurroughs

  • Junior Playmaker
  • **
  • Posts: 73
  • Some kind of independent game developer
    • @HiFiHair
[SOLVED] Raycasts
« on: April 02, 2014, 07: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
« Last Edit: April 04, 2014, 09:20:30 AM by HiFiHair »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Raycasts
« Reply #1 on: April 04, 2014, 07:25:45 AM »
Hi,

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

bye,

 Jean

JonathanBurroughs

  • Junior Playmaker
  • **
  • Posts: 73
  • Some kind of independent game developer
    • @HiFiHair
Re: Raycasts
« Reply #2 on: April 04, 2014, 09: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.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: [SOLVED] Raycasts
« Reply #3 on: April 08, 2014, 07:46:31 AM »
Hi,

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

bye,

 Jean