Hey everybody,
hey Chris!
I would like to create trigger areas that have a different geometry than just boxes. Is that possible? I tried it with a mesh I created in Blender together with a mesh collider but that didn't work.
I could create multiple trigger objects that are boxes to approximate the area I need, but the problem here is that this is about camera areas with two triggers (onEnter, onExit), so when I use multiple objects the onExit and onEnter action lists are invoked, which is not what I want. Basically I would like to define a camera area that is more complex than just a box
Any ideas and suggestions are highly appreciated.
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
AC's Triggers rely on OnTriggerEnter calls - so they'll work with any collider that supports that. Box, Sphere, Capsule colliders should be just fine - though IIRC Mesh Colliders require "Convex" to be checked.
Oh very cool, so the problem I had was related to the mesh collider. Thank you Chris!
Edit: Yes, Convex needs to be checked so "IsTrigger" can be checked. That doesn't produce the shape I need so I will have figure out something else... basically I would need the option to have multiple box colliders act as one collider for a trigger.
So long as your Trigger's Detection method is set to Rigidbody Collision, then it should work with multiple colliders attached.
That is good to know! Sadly I removed all rigidbodys from my characters and changed all triggers to transform detection... but I will keep it in mind. Thanks Chris, you are the best!