rblock.rotation

Syntax

f = rblock.rotation(p) (2D ONLY)
rblock.rotation(p) = f (2D ONLY)

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

Returns:

f - rigid block rotation in degrees

Accepts:

f - rigid block rotation in degrees

Arguments:

p - rigid block pointer