Skip to main content Link Search Menu Expand Document (external link)

@gravrot attribute

:electric_plug: dp.kinect dp.kinect2
:information_source: signature
gravrot GRAVROT_BOOLEAN
:house: values
0
no gravrot messages default
1
output gravrot messages
:bulb: examples
@gravrot 1

Rotation relative to gravity message; angle (degrees) around a vector output to fifth outlet on bang. Common use is to set the @rotate attribute of jit.anim.node to these values.

Another possibility is using @rotatemethod 2 to automatically compensate for gravity.

# Max native:   @gravrot 1 @skeletonformat 1
gravrot a x y z
gravrot 16.798854 0.147311 0. 0.98909

# OSC protocol: @gravrot 1
/gravrot a x y z
/gravrot 16.798854 0.147311 0. 0.98909

:memo: This feature is only supported on sensors with an IMU.