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.
Adding pin constraint to particle in runtime.
|
« Next Oldest | Next Newest »
|
Messages In This Thread |
Adding pin constraint to particle in runtime. - by aaamarkin - 08-11-2017, 09:02 PM
RE: Adding pin constraint to particle in runtime. - by niZmo - 08-11-2017, 11:20 PM
RE: Adding pin constraint to particle in runtime. - by aaamarkin - 09-11-2017, 12:09 AM
RE: Adding pin constraint to particle in runtime. - by niZmo - 09-11-2017, 12:57 AM
RE: Adding pin constraint to particle in runtime. - by aaamarkin - 09-11-2017, 03:01 PM
|