Giving POP particles an initial spin

   13805   4   0
User Avatar
Member
24 posts
Joined: Jan. 2013
Offline
I'm trying to give particles in my POP Network an initial spin (angular momentum), but can't seem to figure out how.

I connected a POP Wrangle node to my POP Solver and experimented with vex code.
@torque = {x, y, z};
…works and the particles start spinning. However I'd like to have them start with a constant angular momentum instead and not apply any angular forces after that.

I thought I had found the right parameter with @w, for which the documentation states:
Angular speed of the particle. This can be thought of as a vector giving the rotation axis with its magnitude being the spin rate. Spin rate is in radians per second.

Alas, neither of the following lines have any visible effect:
v@w = {x, y, z};
v@targetw = {x, y, z};
Are they read only variables maybe?

Let me know if what I want can be accomplished, or if I have to go with torque. Thanks!
User Avatar
Member
24 posts
Joined: Jan. 2013
Offline
Bump, anyone? Is a time-constrained torque the only option?
User Avatar
Member
387 posts
Joined: Nov. 2008
Offline
Particles need to know that they have to compute torque.

So set v@torque directly on emitter (in SOPs):
v@torque = set(10,10,0);

Or initialize v@w on emitter in SOP like you do:
v@w = set(10,10,0);

And in DOPs add poptorque and set it's Amount to 0 (so it takes initial v@w).
User Avatar
Member
24 posts
Joined: Jan. 2013
Offline
Thanks pezetko, adding the POP Torque does enable the w parameter for the simulation!
User Avatar
Member
8525 posts
Joined: July 2007
Offline
the only thing that's important is having orient on your particles if you want w to have any effect
so if you initialize orient alongside of your w in sops, then you don't have to do anything else in dops and your w will be applied

v@w = {10,10,0};
p@orient = {0,0,0,1};
Tomas Slancik
FX Supervisor
Method Studios, NY
  • Quick Links