Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Adding pin constraint to particle in runtime.
#3
(08-11-2017, 11:20 PM)niZmo Wrote: 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.

RemoveConstaint(0) line is commented out. I just experimented with it.
And I'm using particleHandle to get the actual particle that is used by some handler I'm interested in.
In general case it could be any particle. I'm using handler just for grabbing particle index.
Reply


Messages In This Thread
RE: Adding pin constraint to particle in runtime. - by aaamarkin - 09-11-2017, 12:09 AM