How to get colliding objects from a physics body without using an observable?

Hello,

I am currently in the process replacing our current collision system, which uses intersectsMesh() to check for collisions between meshes, to Havok physics bodies and collision observables. Is it possible to get colliding physics bodies without using an observable? It would be much easier for me as I can simply replace my intersectsMesh calls and don’t have to deal with any synchronization issues with observables.

adding @carolhmj our physix superstar

1 Like

You could do a raycast check, and we plan to support shape casts too in the future (which is like a shape-shape test, similar to intersects mesh), but currently raycast is the only option besides the collision observable.

2 Likes

Shape casts would be perfect. I saw the GitHub issue for the feature is marked as a milestone for Babylon 7, so I’ll hold off until then. Thanks!

2 Likes