Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Wrong Particle Position
#3
As a side note, your code seems to assume the 3rd particle in the actor is the 3rd particle along the rope. This is usually not the case.


The reason is that when you change the length of the rope or tear/cut it, new particles may be added at any point along the rope (at the position of the cursor when resizing the rope, or at the position of the cut when cutting it). For instance, this rope:

(0)---(1)---(2)---(3)

may become this one when increasing its length using a cursor placed at particle 1 (two new particles with indices 4 and 5 are added to it):

(0)---(1)---(4)---(5)---(2)---(3)


So when reasoning about the length of a rope, you must not use particles but elements. See the manual for an in-depth explanation.

kind regards,
Reply


Messages In This Thread
Wrong Particle Position - by TryBios - 29-09-2024, 04:42 PM
RE: Wrong Particle Position - by josemendez - 30-09-2024, 08:24 AM
RE: Wrong Particle Position - by josemendez - 30-09-2024, 08:31 AM