22-11-2022, 08:56 AM
(This post was last modified: 22-11-2022, 08:57 AM by josemendez.)
(22-11-2022, 06:22 AM)syunteri Wrote: I have an old question and I have the source code,
http://obi.virtualmethodstudio.com/forum...-2422.html
An error occurs with the latest version of obi Cloth (Obi6.5).
I think this error location is due to the difference in versions (this source is for Obi 5.6)
How should it be described in the latest version (Obi6.5)?
Hi!
See the manual:
http://obi.virtualmethodstudio.com/manua...sions.html
Obi 6.0 introduced simplices and surface collisions, so all particle indices in collision detection have been replaced by body/simplex indices. They get accessed and used slightly differently than direct particle indices.
If your scenes do not make use of surface collision, it's a simple change: just replace contact.particle with solver.simplices[contact.bodyA]; and contact.other with contact.bodyB
kind regards,