24-05-2021, 02:19 PM
(This post was last modified: 24-05-2021, 02:20 PM by josemendez.)
(24-05-2021, 02:08 PM)xkalibrx Wrote: Thanks for your reply, it was quite helpful!
We have another question, sorry to bother you.
Suppose we would change the rope radius at a given particle. Is it possible to change the center position? I'm not sure how to phrase this but I hope the image gives an idea of the effect we are looking for. We want the bulge to be a little bit to the side of the rope.
Hi,
Sure. Just set the position of the particle, in addition to setting its radius.
Say the radius of the particle was originally 1, and is now 1.5 after bulging. You can move it 0.5 units (newRadius - oldRadius) in any direction perpendicular to the local tangent vector to achieve this effect.