Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: autumnboy 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 (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 (https://hutonggames.com/playmakerforum/index.php?topic=16321.0)
Cheers,
Josh
-
bump
-
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.
-
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 (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?
-
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.
-
Okay,
Thanks for the info. Thanks for the action as well.
Cheers,
Josh