User Tools

Site Tools


crpl:docs:setimagerotation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
crpl:docs:setimagerotation [2013/05/29 20:43] – Adding that image slot "main" exists for primary unit image Molaycrpl:docs:setimagerotation [2025/02/14 14:57] (current) – external edit 127.0.0.1
Line 1: Line 1:
-~~DISCUSSION~~+
 <- [[crpl:crplreference| CRPL reference]] <- [[crpl:crplreference#image_commands|Image Commands]] <- [[crpl:crplreference| CRPL reference]] <- [[crpl:crplreference#image_commands|Image Commands]]
 =====  SetImageRotation  ===== =====  SetImageRotation  =====
Line 8: Line 8:
  
 === Description === === Description ===
-Sets the rotation of the image (in radians). The slot named “main” refers to the primary unit image (the one that can be set in the editor).+Sets the rotation of the image (in radians). Rotation occurs around the center of the image.  The slot named “main” refers to the primary unit image (the one that can be set in the editor).
 === Examples === === Examples ===
  
-  * **Rotate an image**\\ %% %% \\ //For X Y movement just set the x and y coordinates like you set the z coordinate.  0,0 is the center of the unit Positive x is to the right and positive y is to the top.  Basically take a look at these [[crpl:crplreference#image_commands|image commands]]//\\ %% %%\\ <code>+  * **Rotate an Image**\\ %% %% \\ //This updates the image's rotation every framegiving the appearance that it's spinning continuously.//\\ %% %%\\ <code>
 # Rotate the image  # Rotate the image 
 Self "FlyingThing" 0.1 SetImageRotation Self "FlyingThing" 0.1 SetImageRotation
crpl/docs/setimagerotation.1369860183.txt.gz · Last modified: 2025/02/14 14:56 (external edit)