particles move in an orbit

   1382   2   1
User Avatar
Member
9 posts
Joined: Feb. 2015
Offline
Hi all! Tell me how to make the particles move in an orbit, like stars in a galaxy, and not fly apart? Thanks

Attachments:
image.png (917.3 KB)
imaged.png (785.5 KB)

User Avatar
Member
2534 posts
Joined: June 2008
Offline
By using Vexpression, you can control the force based upon distance from center.

Controls popaxis force.
vector origin = {0,0,0};
orbitspeed = fit(abs(length(@P-origin)),0,1,3,0);

Controls applied drag.
vector origin = {0,0,0};
airresist = fit(abs(length(@P-origin)),0,1,0,10);
Edited by Enivob - Nov. 25, 2022 11:27:47

Attachments:
popnet_galaxy.gif (1.6 MB)
ap_popnet_galaxy.hiplc (314.9 KB)

Using Houdini Indie 20.0
Windows 11 64GB Ryzen 16 core.
nVidia 3050RTX 8BG RAM.
User Avatar
Member
9 posts
Joined: Feb. 2015
Offline
Enivob, its look great, thx U!
  • Quick Links