Space Engineers

Space Engineers

评价数不足
GAC - rich_27's Gravity Aligned Camera Script
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
2.902 KB
2018 年 3 月 12 日 上午 7:17
2018 年 3 月 19 日 上午 10:00
2 项改动说明 ( 查看 )

订阅以下载
GAC - rich_27's Gravity Aligned Camera Script

描述
Version: 1.1 Date: 19-Mar-18

DESCRIPTION:
The script orients a sub-grid so that the detected camera is aligned to gravity.

WHAT IT DOES:
The script detects a single camera, and controls two (or three) rotors to orient the camera's
forward vector with respect to gravity. If using three, it can align the camera's up vector with
a saved vector.

HOW TO USE IT:
1. Create a grid with a camera mounted on a pair (or trio) of rotors set up in a traditional
gimbal fashion. If using three rotors, the innermost one must control the yaw of the camera.

2. Add a programmable block and load this script from the workshop.

3. Adjust 'alignmentSpeed' to change how fast the camera aligns to gravity.

4. (Optional) If using a camera yaw rotor, run the programmable block from the terminal to set the
current camera up direction for camera yaw. The script will then use that rotor to align the
camera to that vector.

CHANGELOG:
v1.0, 12-Mar-2018
- Initial release
v1.1, 19-Mar-2018
- Added support for a third rotor and control of camera yaw
7 条留言
TW1STEDKINGZ 2020 年 9 月 22 日 下午 10:10 
Hi, Is there any way to get the script to pick out one camera on a grid with other down facing camera's?
Spychotic 2020 年 3 月 19 日 上午 8:53 
Hi, I am trying out this script, but it keeps returning an error; "Error: Ship controller". I can't figure out what is wrong. Can anyone give me any guidance?

Regards, Spike
Hirnsausen 2019 年 7 月 11 日 上午 2:01 
Splitsie mentioned in his Youtube videos your useful script.
But there is one more script we would need:
Gravity-Aligned Ship Script.
I would love to create such a script by myself but lack the knowledge. Thus i have two requests and hope you can make one of those two possible:
- if convenient for you to write that script
- or to let me see the script code for your GAC and I will try to develop the GAS scropt
I would need information, how to write mods for Space Engineers, though.
abuseJUNKEY 2019 年 4 月 24 日 下午 10:00 
I'm no expert but it looks like it takes a minimum of two rotors
Malacanth 2019 年 3 月 27 日 下午 9:00 
Do I need to tag the rotors anything, I just want it to align using one rotor, but I just get an error of no perpendicular rotor.
rich_27  [作者] 2018 年 3 月 23 日 上午 7:26 
Pleasure :)
_SD_ 2018 年 3 月 22 日 上午 2:43 
Nice thanks man!