31-07-2023, 11:05 AM
(This post was last modified: 31-07-2023, 11:06 AM by josemendez.)
Hi!
If your ropes are using surface collisions (I'd be inclined to think they do, since they seem copied from the "RopeCutting" sample scene and the ropes in that scene use surface collisions), then you can't assume each simplex is made out of a single particle like you do here:
This will lead to incorrect results.
The manual explains how to retrieve all particles in each simplex in the general case. See "Retrieving the particle involved in a contact":
http://obi.virtualmethodstudio.com/manua...sions.html
let me know if you need further help,
kind regards
If your ropes are using surface collisions (I'd be inclined to think they do, since they seem copied from the "RopeCutting" sample scene and the ropes in that scene use surface collisions), then you can't assume each simplex is made out of a single particle like you do here:
Code:
// get the particle index:
var particleIndex = solver.simplices[contact.bodyA];
This will lead to incorrect results.
The manual explains how to retrieve all particles in each simplex in the general case. See "Retrieving the particle involved in a contact":
http://obi.virtualmethodstudio.com/manua...sions.html
let me know if you need further help,
kind regards