[jit.anim.drive] Arbitrary Units for Animation Speed?

Joe Kaplan's icon

Greetings, can anybody help understand the Speed attribute works in jit.anim.drive uses?

The default value for this attribute is 30 "units per second." What are these units?
The turn message for example, takes my argument and multiplies it by speed. So if I send "turn" with an argument of 40, I shape will turn at a rate of 1200 units per second.

But this certainly isn't 1200 full rotations per second. Just wondering how I can convert "Speed units" to a real world unit I can use in specification documents, etc. Thanks for any input!

speed

The speed of animations in units per second. (default = 30.)

turn

Arguments:
x [float]
y [float]
z [float]
Rotate the attached object along each axis by the amount provided. The axis arguments are multiplied by speed.

Joe Kaplan's icon

I did some testing here.

If I send "turn 0 1 0" to [jit.anim.drive] it looks like one rotation takes 12000 seconds.
The turn value is multiplied by the speed value (default = 30). So it looks like a speed unit, for turning at least, is 90 degrees per 400ms.

Max Patch
Copy patch and select New From Clipboard in Max.

Matteo Marson's icon

Hey Joe,

I don't know exactly how [jit.anime.drive] computes the rotation speed, but if you need to calculate that accurately, I suggest one of the following methods

Max Patch
Copy patch and select New From Clipboard in Max.

Rob Ramirez's icon

i believe the unit in anim_turn is degrees. that seems to make sense, it takes 12 seconds to complete a full rotation, the default speed is 30 units per second (degrees per second), so 12 seconds * 30 degrees per second = 360 degrees.