Dev - Lua Libraries

Lua Command: s3sprite.getRotation

Parameters

Return Values

Signature

float rotation = s3sprite.getRotation(int spriteID)

Description

Returns the rotation (in degrees) of the sprite with the given spriteID. See s3sprite.setRotation for details.

Note:

rotation will be 0 if there is no sprite with the ID spriteID.