Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Test if rope is tense, and extend it in code
#5
Ok ! mmm I have one other little trouble:
I have set the pooledParticle to 50... but the moment I change the Length... like that:
cursor.ChangeLength(rope.RestLength + hookExtendRetractSpeed * Time.deltaTime);
then the variable pooledParticle drop to 9, 8, ... 0 (and not 49, 48, ... to 0...), so I have only 10 pooled Particle  to add... i don't know why i can't change it.
 
[Image: HCspbwQotAl_Capture.PNG][Image: HCspcbcIMAl_Capture2.PNG]


And one other thing... when i have my rope setup in inspector, if I want to grow the rope, and add more particle inside, how do I do ? Im' stuck with my 10 initial particle, and I want to grow it up, witout deleting and recreating the rope...
[Image: HCspgtToUOl_Capture3.PNG]

Thanks you again
Reply


Messages In This Thread
RE: Test if rope is tense, and extend it in code - by usernameHed - 18-03-2018, 04:09 PM