Page 1 of 1

Alternate gravity affector

Posted: Tue Dec 14, 2004 3:05 pm
by Rush
The original gravity particle affector behaves in a weird way - the particles have constant speed when falling, which IMHO looks unnatural and ugly. I've written a small fix to make them accelerate over the time they're falling down, like they should according to physics:

< I removed the code because it doesn't really make any difference - see post below. Besides, I kinda messed it up with previous edit >

Posted: Tue Dec 14, 2004 9:19 pm
by Electron
looks good
paerhaps there should be a variable in the ParticleGravityAffector class to specify what rate the particle should accelerate at.

Posted: Tue Dec 14, 2004 9:52 pm
by Spintz
Would be cool to also have the ability to set a terminal velocity, or maximum speed that gravity can accelerate you to?

Cool, nevertheless.

Posted: Wed Dec 15, 2004 10:08 am
by Rush
Hmm... I noticed that you _could_ achieve the same effect by using the default code with a very high timeForceLost. I guess that the change's worthless :/