19-05-2020, 08:27 AM
(This post was last modified: 19-05-2020, 08:28 AM by josemendez.)
Hi phantom,
Keep in mind that Obi is a physics engine of its own (no way to get the required performance out of a traditional rigidbody engine like Unity's), that just happens to allow interaction with other engines via impulse exchange. So you will need to feed the haptic input to your device yourself.
I'm not a expert in haptic feedback by any means (In fact I have no experience at all), but assuming your device only needs some kind of "force" or "resistance" input from the software to create the haptic effects, you can easily get this from Obi: Subscribe to solver.OnCollision to retrieve the list of contacts generated each frame. Then, each contact provides three orthonormal axes, as well as three impulse magnitudes: normal (depenetration), tangent and bitangent (friction). You should be able to feed these to your device. See the manual for details: http://obi.virtualmethodstudio.com/tutor...sions.html
I'd use a regular rigidbody to touch the softbody, as softbody-softbody interaction is subject to worse tunneling due to particle sizes.
cheers!
Keep in mind that Obi is a physics engine of its own (no way to get the required performance out of a traditional rigidbody engine like Unity's), that just happens to allow interaction with other engines via impulse exchange. So you will need to feed the haptic input to your device yourself.
I'm not a expert in haptic feedback by any means (In fact I have no experience at all), but assuming your device only needs some kind of "force" or "resistance" input from the software to create the haptic effects, you can easily get this from Obi: Subscribe to solver.OnCollision to retrieve the list of contacts generated each frame. Then, each contact provides three orthonormal axes, as well as three impulse magnitudes: normal (depenetration), tangent and bitangent (friction). You should be able to feed these to your device. See the manual for details: http://obi.virtualmethodstudio.com/tutor...sions.html
I'd use a regular rigidbody to touch the softbody, as softbody-softbody interaction is subject to worse tunneling due to particle sizes.
cheers!