ball.rotation

Syntax

f = ball.rotation(bp) (2D ONLY)
ball.rotation(bp) = f (2D ONLY)

Get/set the ball orientation. The orientation is updated only when orientation tracking has been enabled (see the model orientation-tracking command).

Returns:f - ball rotation in degrees
Accepts:f - ball rotation in degrees
Arguments:bp - ball pointer