pop acceleration?

   191   1   0
User Avatar
Member
862 posts
Joined: Oct. 2008
Offline
I can't believe I never used or noticed this but how do we obtain a particle's acceleration inside a popnet?
--
Jobless
User Avatar
Member
123 posts
Joined: Aug. 2017
Offline
One of the way, thru time shift
float v1 = length(vector(point(1, "v", @ptnum)));
float v2 = length(vector(point(0, "v", @ptnum)));
if( v2-v1 > 0.5){
    //@Cd = set(1,0,0);
    f@emitparticles = 100000.0;

}else{
    f@emitparticles = 0.0;
    removepoint(0,@ptnum);
}

float maxVal = max(abs(@v.x), max(abs(@v.y), abs(@v.z)));

if( maxVal == abs(@v.x) ){
    @v = set(@v.x,0,0);
}else if(maxVal == abs(@v.y)){
    @v = set(0,@v.y,0);
}else if(maxVal == abs(@v.z)){
    @v = set(0,0,@v.z);
}

Attachments:
ac.jpg (110.3 KB)

Conservation of Momentum
  • Quick Links