Playmaker Forum

PlayMaker News => General Discussion => Topic started by: Kothe on December 17, 2013, 02:10:25 PM

Title: Raycast In \ Out
Post by: Kothe on December 17, 2013, 02:10:25 PM
Hi.
I have followed the tutorial about RasyCast. And make it work on my proyect.

Once the obj. has been hited and sent an Equal Event, I need it to raycast again to send a Not Equal event.
Some kind of over\exit...   on-off switch.

I have tried with two states and also two FSM with Global variables. Unsuccessfully. :(

THX
Title: Re: Raycast In \ Out
Post by: Lane on December 17, 2013, 02:13:30 PM
Not sure what you mean, can you clarify?
Title: Re: Raycast In \ Out
Post by: jeanfabre on December 17, 2013, 02:49:25 PM
Hi,

 I think that the following thread will help you understand how to manually check for in and out casting, in that sample it uses the mouse pick action, but raycasting would be totally the same in principle.

http://hutonggames.com/playmakerforum/index.php?topic=5120.msg24564#msg24564

Bye,

 Jean
Title: Re: Raycast In \ Out
Post by: Kothe on December 18, 2013, 06:04:17 AM
 I have tried it. But I can not make it work. >:(
Title: Re: Raycast In \ Out
Post by: jeanfabre on December 19, 2013, 02:35:19 AM
Hi,

 Can you bump me next week or the week after, I'll make a working sample.

bye,

 Jean
Title: Re: Raycast In \ Out
Post by: Kothe on December 19, 2013, 10:28:23 AM
You sure

Thanks alot
Title: Re: Raycast In \ Out
Post by: Dreatern on December 19, 2013, 10:38:35 AM
Raycast 2 by jeanfabre?

Quote
Hi,

 Following a post, please find a updated version of the RayCast action that implements a "no Hit" Event, so it's easier to build your states logic.

 Bye,

 Jean
* RayCast2.cs (4.78 kB - downloaded 24 times.)

http://hutonggames.com/playmakerforum/index.php?topic=3738.msg17310#msg17310
Title: Re: Raycast In \ Out
Post by: jeanfabre on December 19, 2013, 01:22:38 PM
 :o  ::)

 The amount of stuff I wrote is becoming too much for my poor memory...

Thanks for referencing this!

one of the "resolution" I set to myself next year is to move everything into an online repository and find the time to make a proper in Editor custom action search, that would look in that rep for actions not yet in a project. That's going to help all these situations a lot.

bye,

 Jean

Title: Re: Raycast In \ Out
Post by: Lane on December 19, 2013, 02:27:15 PM
Hah, I didn't know about Raycast 2 either and have been making a Raycast 2 action including a NoHit event. Derp derp (thats what I get for not searching first)

A repository would be immensely useful, especially when keyword searches on the forum can often leave critical threads buried. I think we talked about something similar in Feature Requests a while back but it was much more advanced. A much simpler solution is likely the way forward.
Title: Re: Raycast In \ Out
Post by: jeanfabre on December 19, 2013, 11:50:30 PM
Hi,
 
Yep, the amount of custom actions has reach now a point where the forum context shows its limitations. I will clean up and create that rep early january. I did study the various reps api and I think it's very much possible to do a search and pool just the right action.

Bye,

 Jean