User Tools

Site Tools


4rpl:commands:rotateunittowards

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
4rpl:commands:rotateunittowards [2022/05/02 00:12] – [Examples] Removed extra parentheses Vertu4rpl:commands:rotateunittowards [2025/02/14 14:57] (current) – external edit 127.0.0.1
Line 6: Line 6:
  
 ===== Description ===== ===== Description =====
-Rotates a unit so that its forward, or positive Z axis, points towards the supplied vector position. The vector pos (X,Y,Z coordinates) are a position in 3D space.+Rotates a unit so that its forward, or positive Z axis, points towards the supplied vector position. The vector pos (X,Y,Z coordinates) are a position in 3D space.\\
 The max rotation can be limited by supplying a maxRotationDeg in degrees. The max rotation can be limited by supplying a maxRotationDeg in degrees.
-If a negative value is specified for the maxRotationDeg, the rotation will move away from rather than towards the specified target location+ 
 + 
 +If a negative value is specified for the maxRotationDeg, the rotation will move away from rather than towards the specified target location.\\ 
 +:WARNING: This is far more complicated than this. More detailed documentation is required.
 ===== Examples ===== ===== Examples =====
 <code 4rpl> <code 4rpl>
4rpl/commands/rotateunittowards.1651450338.txt.gz · Last modified: 2025/02/14 14:56 (external edit)