Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Fixing particle causes slight "jump"?
#1
Hi!

Still working on a proper spooling-simulation - adding rope onto a spool.
In order to lock a particle i set its invMass to zero, store the particles offset from the spool and rotate the offset each update. The locked particle moves around the spool as intended.

However, each time a particle is locked, the "next" particle in line to be locked will jump slightly as if the previously locked particle straightens out the "bone" (see pictures below).
I am unable to determine if it is due to me setting the position slightly off, or if there is something happening behind the scenes between the locked particle and the next one.
When a particle is locked, the particle in question does not seem to move at all, which makes me believe that this is physics-related.
Is there any way to get around this? Might this be caused by the orientation of the particle? I am not the greatest at physics, but i might get it to work properly with some additional pointers Sonrisa

Also, is there any way to prevent the rope from making a twitch/skip when adding a new particle? Or at least to smooth it out a bit? Im having to start the simulation quite far from the actual spool to not get twitches from particles spawning.



Image 1: https://imgur.com/a/Y5kVhfJ
Image 2: https://imgur.com/a/YGdOb22
A red line indicate that the particle has been locked. The angle of the cable around the center of the spool increases with each locked particle due to the cable being straightened by the tiny "jump".


Best regards, Christoffer
Reply


Messages In This Thread
Fixing particle causes slight "jump"? - by Christoffer - 18-12-2023, 10:32 AM