Hi, What would be the correct solution to catch OnTriggers events with the ECS system. In the TwinStickSample they only do a radius check. Can we access the physics triggers event through systems ? Thanks
I have not tried it, but I guess at the moment that would be a "hybrid" solution. I.e. - you create a component which has a "trigger indicator" and is accessed by the ECS systems - this trigger indicator is set by a monobehaviour class attached to the entity, which implements the unity magic methods / interfaces to catch the trigger event
I think for now you need to implement your own solution until all features get integrated with ECS or use mentioned hybrid solution.
@sngdan is right. ATM you have to either rely on a Hybrid approach or write the collision code yourself. As we move forward we will add compatibility with more and more systems. Physics and collisions are on top of our priority list.
Lovely, and if you could, expose all spatial query mode, like "closest hit" which would save extra distance sorting, good for AI.