Obi Official Forum
Help Grab VR - Printable Version

+- Obi Official Forum (https://obi.virtualmethodstudio.com/forum)
+-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html)
+--- Forum: Obi Cloth (https://obi.virtualmethodstudio.com/forum/forum-2.html)
+--- Thread: Help Grab VR (/thread-3663.html)



Grab VR - syunteri - 22-11-2022

I have an old question and I have the source code,
http://obi.virtualmethodstudio.com/forum/thread-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)?


RE: Grab VR - josemendez - 22-11-2022

(22-11-2022, 06:22 AM)syunteri Wrote: I have an old question and I have the source code,
http://obi.virtualmethodstudio.com/forum/thread-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/manual/6.3/scriptingcollisions.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,


RE: Grab VR - syunteri - 22-11-2022

I see. Thank you very much.


RE: Grab VR - syunteri - 24-11-2022

I made it! thank you