Difference between revisions of "API Panel.Position.GetQuat"
From Flowcode Help
Jump to navigationJump to searchLine 23: | Line 23: | ||
==Detailed description== | ==Detailed description== | ||
− | + | ||
Latest revision as of 11:54, 16 January 2023
![]() |
GetQuat |
Returns the positions quaternion in (X,Y,Z,W) array | |
![]() |
Handle |
The position or component to read | |
![]() |
Target |
The position or component to convert relative to | |
![]() |
Return |
Detailed description
Examples
Calling in a calculation
- Declare a variable 'result' of type FLOAT[]
- Add to a calculation icon:
result = ::Panel.Position.GetQuat(handle, target)
Flowcode example file
Download
SIMAPI_Panel_Position_GetQuat and open it in Flowcode v6. In this example a blue cuboid and a LCD are shown on the system panel. When the program starts, a wikipedia:Quaternion of the cuboid is returned into an existing Float Array variable. The Quaternion values are then displayed on the LCD display.
The screenshots below show the effect and also highlight the code used by the example.