Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Pull particles in a given direction
#11
(25-05-2021, 12:32 PM)josemendez Wrote: That's basically what particles do by default. The bulge will move according to what it is colliding against, eg: if it has a wall on its right side, it will move to the left. The right side of the rope will be flat against the wall, and the left side will bulge out.

As I pointed out, particle radius is the collision radius. If you've changed the radius, this is the behavior you'll get by default (unless you've got collisions deactivated).

Sorry if I confused you.
We are making a player-controlled bulge that moves along the rope.
We decided to follow your hose example. But we couldn't figure out how to modify radii in such a way that the bulge sticks out from just one side.
Maybe we misunderstood your advice from your previous post and took a wrong turn somewhere.

As per your request this is how we set particle positons
_solver.positions[generatorIndex] += (Vector4)normal * 0.5f;
_solver.positions[generatorIndex + 1] += (Vector4)normal * 0.45f;
_solver.positions[generatorIndex - 1] += (Vector4)normal * 0.45f;


Attached Files Thumbnail(s)
       
Reply


Messages In This Thread
Pull particles in a given direction - by xkalibrx - 19-05-2021, 05:09 PM
RE: Pull particles in a given direction - by xkalibrx - 25-05-2021, 02:04 PM