Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Collider interactions
#1
Is it possible for a Unity (non-Obi) collider to detect interaction events with Obi colliders? Do Obi colliders adapt according to the shape of a deformed object? I intend to use it for haptic feel so shape of colliders is important. I added a Unity mesh collider with softbody and that does not appear to deform with particles. Kindly suggest any possible approach.
Reply
#2
(07-02-2025, 09:26 AM)AnupamSingh Wrote: Is it possible for a Unity (non-Obi) collider to detect interaction events with Obi colliders? Do Obi colliders adapt according to the shape of a deformed object? I intend to use it for haptic feel so shape of colliders is important. I added a Unity mesh collider with softbody and that does not appear to deform with particles. Kindly suggest any possible approach.

Hi,

I don't think I understand your question, sorry. All ObiColliders do is expose the properties of a regular Unity collider to Obi, so that particles can collide against it: every ObiCollider is also a Unity (non-Obi) collider .

(07-02-2025, 09:26 AM)AnupamSingh Wrote: Do Obi colliders adapt according to the shape of a deformed object?

No, since ObiColliders are also Unity colliders and Unity colliders are rigid - can't change their shape.

(07-02-2025, 09:26 AM)AnupamSingh Wrote: I added a Unity mesh collider with softbody and that does not appear to deform with particles.

Unity colliders can't deform, simple as that. This includes MeshColliders. They're supposed to be rigid, after all, that's the main assumption that makes colliding against a mesh possible at all.

I'm not sure why you'd need to add a collider of any kind to a softbody though. Softbodies already perform their own collision detection and response using particles.

(07-02-2025, 09:26 AM)AnupamSingh Wrote: I intend to use it for haptic feel so shape of colliders is important.

You can use softbodies directly. Obi exposes a collision detection API that allows you to get contacts between softbody particles and colliders.

kind regards,
Reply