27-03-2025, 09:11 PM
Hi,
Your code won’t work if any actor in the solver uses surface collisions. The reason is it assumes every simplex consists of a single particle, which may not be true in the general case. For instance, if all ropes in the solver use surface collisions, all simplices are tuples of 2 particles so your code will likely access indices belonging to the first rope only.
See the manual for example code snippets that show you how to access both actors involved in a contact:
https://obi.virtualmethodstudio.com/manu...sions.html
let me know if you need further help,
Kind regards
Your code won’t work if any actor in the solver uses surface collisions. The reason is it assumes every simplex consists of a single particle, which may not be true in the general case. For instance, if all ropes in the solver use surface collisions, all simplices are tuples of 2 particles so your code will likely access indices belonging to the first rope only.
See the manual for example code snippets that show you how to access both actors involved in a contact:
https://obi.virtualmethodstudio.com/manu...sions.html
let me know if you need further help,
Kind regards