15-04-2020, 12:12 PM
(This post was last modified: 15-04-2020, 12:15 PM by josemendez.)
You can't "rotate" a rope whilst being simulated, it makes no sense at all. Deformable objects in general (not just ropes) cannot be transformed using a single matrix, as rotations are rigid transforms by definition: https://en.wikipedia.org/wiki/Rigid_transformation
Even if you could rotate the entire rope, gravity would immediately make it point downwards again after rotating it... this approach is just not a good idea.
I'd use external forces to coerce the rope particles (or at least the last particle) into moving towards the player. The solver has a externalForces array that you can write per-particle forces into, same as you would set velocities or positions.
Even if you could rotate the entire rope, gravity would immediately make it point downwards again after rotating it... this approach is just not a good idea.
I'd use external forces to coerce the rope particles (or at least the last particle) into moving towards the player. The solver has a externalForces array that you can write per-particle forces into, same as you would set velocities or positions.