playMaker

Author Topic: Does Spherecast or Spherecast2 hit triggers?  (Read 2216 times)

autumnboy

  • Junior Playmaker
  • **
  • Posts: 73
Does Spherecast or Spherecast2 hit triggers?
« on: April 20, 2018, 11:39:23 PM »
Hi, Does anyone know if spherecast or spherecast2 detects triggers? I'm having problems casting and I don't think 'show debugging' is working for it.

The Unity manual says theres a query for it:
https://docs.unity3d.com/ScriptReference/Physics.SphereCast.html

I also came across this post, which says they made spherecast2 ignore triggers:
https://hutonggames.com/playmakerforum/index.php?topic=16321.0

Cheers,
Josh

autumnboy

  • Junior Playmaker
  • **
  • Posts: 73
Re: Does Spherecast or Spherecast2 hit triggers?
« Reply #1 on: April 24, 2018, 07:47:53 PM »
bump

tcmeric

  • Beta Group
  • Hero Member
  • *
  • Posts: 768
Re: Does Spherecast or Spherecast2 hit triggers?
« Reply #2 on: April 25, 2018, 12:23:56 AM »
Spherecast from the ecosystem uses the system default.

You can change the default settings in your editor by going: Edit > Project Settings > Physics > Queries Hit Triggers .

Hover your mouse over this option to see the details/explanation.


autumnboy

  • Junior Playmaker
  • **
  • Posts: 73
Re: Does Spherecast or Spherecast2 hit triggers?
« Reply #3 on: April 25, 2018, 03:11:07 AM »
I know about the queries hit trigger checkbox in physics. I just came across an old post saying spherecast would ignore triggers:
http://hutonggames.com/playmakerforum/index.php?topic=3658.0

The docs for Unity 2017 say spherecast has an option to detect triggers. If it uses the system default then the spherecast action can detect triggers?

tcmeric

  • Beta Group
  • Hero Member
  • *
  • Posts: 768
Re: Does Spherecast or Spherecast2 hit triggers?
« Reply #4 on: April 25, 2018, 04:47:44 AM »
Spherecast the playmaker action from the ecosystem uses the system default. It could be coded to do either, but it currently is not. So its best to check your system to see what it is set to do. Normally it is set to true.

Additionally, I have created another version where you can override the unity default to your own choosing.


autumnboy

  • Junior Playmaker
  • **
  • Posts: 73
Re: Does Spherecast or Spherecast2 hit triggers?
« Reply #5 on: April 26, 2018, 05:14:21 AM »
Okay,
Thanks for the info. Thanks for the action as well.

Cheers,
Josh