09-11-2017, 12:09 AM
(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.