Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Adding pin constraint to particle in runtime.
#2
The handle class has public methods to let you add/remove particles. With your pin code, all I see that is weird is why you are calling RemoveConstaint(0) and using the particleHandle to get the first partcle. You may also access the PinConstraints by obiRope.PinConstraints. If you want there is this snippet which keeps track of the pinned particles to remove them later. And also you can use this to get the actual beginning and ending particles of the rope.
Reply


Messages In This Thread
RE: Adding pin constraint to particle in runtime. - by niZmo - 08-11-2017, 11:20 PM