[WiP] <RetVar> = <RetObj> get rot beta

This forum serves as MSCI Reference at EGOSOFT. It's Read-Only for non MSCI Group members.

Moderators: Scripting / Modding Moderators, MSCI Moderators

Post Reply
User avatar
EmperorJon
Posts: 7178
Joined: Mon, 29. Dec 08, 21:58
x3tc

[WiP] <RetVar> = <RetObj> get rot beta

Post by EmperorJon » Fri, 10. Sep 10, 11:02

<RetVar> = <RetObj> get rot beta

<RetVar> = The variable where the requested information is put.
<RefObj> = The object to check for the information.

Checks the alpha rotation value of the object and writes it as a numeric variable.

Rotation is out of 65536. (0-360 degrees with 65536 being 360, which is of course the same as 0.)

Alpha is Yaw, Beta is Pitch and Gamma is Roll.

For Ships:

- Alpha and Beta are for the direction the Ship is looking to
- Gamma is for the Rotation around the own axis of a Ship
- Alpha is for the Rotation on the ecliptic level (or when gamma = 0 left and right)
- Beta is for the rotation up and down from the ecliptic (or when gamma = 0 )


Example:

$PlayRotA = [PLAYERSHIP] get rot alpha
$PlayRotB = [PLAYERSHIP] get rot beta
$PlayRotG = [PLAYERSHIP] get rot gamma

Would find the exact direction your ship is facing.


Command Location:

Post Reply

Return to “MSCI Reference”