Max speed of an object.

I'm looking to find the max speed of an object in a scene. I figured I would just compare the position of the objects transform from frame to frame. But from there how would i find the max speed throughout the duration of the animation?

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
JokerMartini's picture

great.

Thank you Garp for the quick response to my question.
This is exactly what I was looking for.
I'll end up converting it to calculate the speed based on world units.
Thanks
JokerMartini

John Martini
Digital Artist
http://www.JokerMartini.com (new site)

Garp's picture

Something like:

max_speed =
  amax (for t=animationRange.start+1 to animationRange.end collect
    distance (at time t $.pos) (at time (t-1) $.pos)) * frameRate

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.