I am performing raycasts for my player navigation (click the floor to move). Within my scene there are various trigger boxes which when walked into perform various functions.
I want the movement system to ignore the trigger boxes and just detect for the floor collider. In Unity there is an ‘Ignore Raycast’ feature on colliders but there doesnt seem to be any way to do this in Playcanvas.
Any idea on how to achieve this in the most simplest way possible?
Thanks. How do I get my hands on the new engine release.
In the example I can see how I can filter by one tag (‘green’) but I still don’t see how I can use it to effectively ignore a certain tag. (Unless I maybe disable the object and then maybe fire the ray again.?!?)
What if I want the raycast to be able to detect multiple tags: floor, pickup, interactive object etc but ignore other ones (triggers etc)?
The only way I can seem to do it is to give a ‘clickable’ tag to all my entities that I want to be clicked and I just don’t add the tag to the rest.
It seems a backward way to do things though as I have many objects I’ll need to go through and assign clickable while there are just a couple of objects that wont need the tag.