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


    Jan 20 2022 | 6:54 pm
    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.

    • Jan 22 2022 | 10:06 pm
      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.
    • Jan 24 2022 | 6:52 pm
      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
    • Jan 25 2022 | 6:55 pm
      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.