Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Apply force to a certain element of the rope
#3
(25-08-2020, 12:34 PM)josemendez Wrote: Hi,

First of all, elements and particles are not the same thing. An element is an "edge" linking two particles. You can't set any properties on an element, but you can set properties of any of the two particles at both ends.

Now, to apply a force to a particle you can't set the inverse mass to zero. Setting the inverse mass to zero essentially deactivates physics, and allows you to directly set the position of a particle without dynamics modifying it. This is what the manual says:



A force however, does not directly affect the position of a particle. Remember that force = mass * acceleration. Just write the force vector in the solver.externalForces array at the indices indicated by the rope element. That should do it.
Ok I thank you that now I understand it a little bit better.
But as I understand Tear is applied to an element right? How can I tear a rope starting from a collision? As I know from a collision callback I can get the particle...
Reply


Messages In This Thread
RE: Apply force to a certain element of the rope - by flaurens - 25-08-2020, 07:22 PM