jit.gl.handle output

m.KERN's icon

hi ...

could anyone describe the jit.gl.handles output. i don't understand the four values for "rotate".

thanks martin.

Maarten's icon

x y z and amount I believe

rotation of x y z between 0..1 and the last one is the amount in radians.

Of the top my head that is.

jasch's icon

it's called angle-axis rotation (quaternion-rotation)

the four numbers are:

angle, x-component, y-component, z-component (of vector to rotate
around)

use the [rotatexyz $1 $2 $3] message for jit.gl.handle to have
"normal" rotation in angle per Cartesian dimension.

cheers

/*j

Maarten's icon

Then I would like to apologize :) My answers was not as argumented as
'/*j's and clearly flawed.