OMG, Looking at script… Thats exactly what I wanted… !!!
But I am a blender newbie…
I created a new particle system named ‘particle’ for the plane
I pressed ‘P’ in the 3D view and I got:
swap: 0.017 (60… frames per second)
Physics: Blah, blah
Logic: Blah, blah
And a list of other things on the top right corner of the screen
I also saw the acceleration-color animation — VERY COOL!
Please help on how I can see those values calculated by the script. [ I have no skills in setting up sensors and actuators… ]
THANKS HG1, I am confident that the script will do just what I need!!!
While in free fall the acceleration should be constantly at 1G, but the balls shift color at the top. Turns out it is because the script converts the speed vectors to a magnitude before calculating the delta speed and because of that lose all directional info.
A fixed version is attached. Also took out time from the calculation - BGE is step based and I think it’s more accurate without time but I’m not sure. Only the coloring script is fixed - the average script is untouched but have probably the same error.
This is interesting… This is a good way to calculate damage on impact.
[Sorry, File manager was not working, so I had to use hotfile]
Scenario:
The particles fall from the emitter onto a vibrating surface.
The particles contain some amount of stickiness, so they vibrate along with the surface(See frame 250+)
I need to find the average acceleration of the particles during their oscillation [while being stuck to the surface]
I don’t need an average during their free fall or intial rebound…