playMaker

Author Topic: Raycast In \ Out  (Read 3764 times)

Kothe

  • Junior Playmaker
  • **
  • Posts: 71
Raycast In \ Out
« 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

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Raycast In \ Out
« Reply #1 on: December 17, 2013, 02:13:30 PM »
Not sure what you mean, can you clarify?
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Raycast In \ Out
« Reply #2 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

Kothe

  • Junior Playmaker
  • **
  • Posts: 71
Re: Raycast In \ Out
« Reply #3 on: December 18, 2013, 06:04:17 AM »
 I have tried it. But I can not make it work. >:(

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Raycast In \ Out
« Reply #4 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

Kothe

  • Junior Playmaker
  • **
  • Posts: 71
Re: Raycast In \ Out
« Reply #5 on: December 19, 2013, 10:28:23 AM »
You sure

Thanks alot

Dreatern

  • Playmaker Newbie
  • *
  • Posts: 21
Re: Raycast In \ Out
« Reply #6 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

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Raycast In \ Out
« Reply #7 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


Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Raycast In \ Out
« Reply #8 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.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Raycast In \ Out
« Reply #9 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