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

@gravrot attribute

🔌dp.kinect dp.kinect2
signature
gravrot GRAVROT_BOOLEAN
values
0
no gravrot messages default
1
output gravrot messages
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

📝 This feature is only supported on sensors with an IMU.