.obj - Speed of rotation

    Mar 16 2006 | 4:21 pm
    I have been trying to measure the average speed of rotation (throughout all dimensions) of an .obj that has been manually spun (using a mouse or alternative HI) using the jit.gl.handle object.
    The idea behind this is to use it as a tempo control for sample playback and so the resulting output figure must be constant but so far have not managed to programme anything that achieves this.
    Has anybody tried this before or have any ideas how this could be achieved?
    I have been trying this out using the jit.gl.handle help patch.

    • Mar 16 2006 | 8:18 pm
      You'll need to get into some math to do this. It might be easier for you to grapple with this stuff in JS or Java, and the Jitter3DUtils.js jsextension would be a good starting point for you to approach the different types of rotation vectors (angle/axis, XYZ, quaternion).
      In a future version of jit.gl.handle, we could add a gettable/ settable delta-angle axis increment used internally to jit.gl.handle. Though for now, you'll need to manage this yourself with something like the Jitter3DUtils.js (with which jit.gl.handle can be simulated).