Jump to content

API Panel.Position.RotateAlong: Difference between revisions

From Flowcode Help
No edit summary
m Text replacement - "width="90%" style="background-color:#D8C9D8; color:#4B008D;"" to "width="90%" class="mtx-class-macrohead""
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''RotateAlong'''
| width="90%" class="mtx-class-macrohead" | '''RotateAlong'''
|-
|-
| colspan="2" | Rotates the object by the given rotation along an axis 
| colspan="2" | Rotates the object by the given rotation along an axis 

Latest revision as of 14:11, 13 July 2026

RotateAlong
Rotates the object by the given rotation along an axis 
- HANDLE Handle
The position or component to update 
- HANDLE Pivot
The coordinates of the rotation center 
- HANDLE Axis
An axis to align the angles to 
- FLOAT X_Pitch
The local X degrees to increment by 
- FLOAT Y_Yaw
The local Y degrees to increment by 
- FLOAT Z_Roll
The local Z degrees to increment by 
- NONE Return


Detailed description

Rotation around X

The rotation calls allow an object to be rotated around any point in any axis.

The Handle must be a valid handle to a component or position, or a quoted (string) name of an object that can be selected on the panel.

An object can rotate around it's own axis, or around the axis of another object's axis(x,y,x). An axis is the direction an object is facing.

The Pivot is a component or position to rotate around. The object will adjust its angle as though it is sliding around the edge of a circle, so at 180 degrees the object will appear 'upside-down' in the same way as a human walking around the globe from the north to south pole.

If the Pivot is zero the object rotates around its own center.

The Axis is the alignment to rotate around. Specifying zero will cause the object to rotate around its own axis, or this may be the handle of another component or position.


Examples

Calling in a calculation

  • Add to a calculation icon:
    ::Panel.Position.RotateAlong(handle, pivot, axis, x_pitch, y_yaw, z_roll)