Acceleration

Tsh't

18-07-2008 18:42:13

Hello.
I wish to get acceleration a body is subject to. I suppose I could calculate it with time and velocity, but I don't know why there is no function "getAcceleration" (only velocities and position).

What is the best way to get it ?

I need it to do some interpolation / extrapolation...

betajaen

18-07-2008 18:58:38

Because acceleration is a change of speed. By the time the speed has changed the acceleration is again. Perhaps you are thinking of momentum or even velocity.

Tsh't

19-07-2008 03:41:32

If I remember my physics, momentum is mv and is also used with collision to get speed after them... Acceleration can be seen as integrate of velocity. I should be able to use v2-v1 / t2-t1, yes it's change of speed, but I find rather odd that PhysX doesn't provite the result as an accessor... It must be something I did not understand :(
But I need position and velocity and acceleration to use my interpolation algorithm. I'm sure I'm not thinking of momentum nor velocity.