Stormworks: Build and Rescue

Stormworks: Build and Rescue

Not enough ratings
Coordinate transformation program (Physics sensor version)
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
214.844 KB
Mar 22, 2023 @ 2:22am
1 Change Note ( view )

Subscribe to download
Coordinate transformation program (Physics sensor version)

Description
World coordinates → local coordinates and local coordinates → world coordinates can be converted.
Works even upside down.
It can be used for FCR_ and artillery control.

About coordinates
world coordinates
X represents east and west. East is the positive direction. It is the same coordinate system as the X of the GPS sensor.
Y stands for North and South. North is the positive direction. It is the same coordinate system as the Y of the GPS sensor.
Z stands for altitude. Up is the positive direction. It is in the same coordinate system as the altitude sensor values.

local coordinates
X represents left and right. Right is the positive direction.
Y stands for front and back. Forward is the positive direction.
Z stands for up and down. Up is the positive direction.

Usage
Copy and paste the function to the LUA you want to use.

For details on how to use it, sample programs you subscribed to.

Others
  • You can remodel it.
  • You may distribute it secondarily (if you modify it).
  • You can incorporate it.
  • You can make a video.
  • You don't have to get permission.