Obi Official Forum

Full Version: Triggers and raycasting SDF
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, I have some SDF object and I want to know if actor is inside that SDF, but I don't need to know normals, position or anything else, just if actor/particles overlap with SDF.
I can see in docs that there is example with custom gravity force zone, so I guess I just need to enable isTrigger in unity collider, however I guess this is not optimized in anyway and "contacts" are still generated.

1. Is that the best way to detect object inside some custom zone (trigger collider with SDF)?
2. Is there other way / option to optimize those without much effort?
3. Is it possible to raycast obi SDF? There is option to query particles, but it would be nice to raycast colliders without need of mesh collider.
4. In additon I wonder if there are performance benefits of reusing distance field (besides memory). I assume it needs to find octant and that is main thing to do, assuming bounding boxes overlap and collision layers match. So I guess if there are tow SDF's with the same or slightly different set of nodes there is no much difference.