Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Adding pin constraints to a rope at runtime
#10
(18-03-2018, 06:12 PM)josemendez Wrote: Are you waiting for the rope to be fully initialized before calling AddPendulum? There will be no pin constraint batches (or constraints of any kind, for that matter) before the initialization coroutine  (MakeRope()) has finished... this is explained in the comments to that function:

fantastic!!! for those interested I added another call to a coroutine call DoLast that had a while(!generated) loop with a waitforseconds call of 0.1 second, when the rope set up coroutine finishes it sets the flag to true, then it set up the pin.

If there is a more eloquent way, i'd like to know. 

Thank you so so much for your help Jose.

sorry Chilly5 for hijacking your thread, was too similar to my issue to start my own.


Oh, I am unclear as to which variable controls the particle's mass, would you mind if I ask, so I can set those at generation as well.
Reply


Messages In This Thread
RE: Adding pin constraints to a rope at runtime - by Gieve - 18-03-2018, 06:44 PM