rotate


Description:

[ DestroysInstance ]
public Transform? rotate (float angle)

Rotates this angle degrees in 2D - or in 3D-speak, around the Z axis.

The rotation happens around the origin point of (0, 0).

Parameters:

this

the next transform

angle

the rotation angle, in degrees (clockwise)

Returns:

The new transform