Introduction/functions-rotate-int-rotate

Rotate Function

Introduced in version 1.0

Rotate function allows you to instantly rotate selected component.


Example:

gm_stock->rotate(render_object_component, by, 0, 5, 0)

Example above rotates component by 5 degrees in y axis.


You can also set component rotation using "set" parameter instead.

Interp_Rotate Function

Interp_Rotate function allows you to smoothly rotate selected component.


Example:

gm_stock->int_rotate(render_object_component, by, 0, 5, 0, 5)

Example above smoothly rotates component by 5 degrees in y axis.


You can also set component rotation using "set" parameter instead.

documentation

Outdated! Updates coming soon.