Space Engineers

Space Engineers

37 ratings
Gravity Engine Controller (Gravity Drive Script)
3
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
683.517 KB
30 Jun, 2020 @ 8:13pm
9 May, 2023 @ 4:35pm
32 Change Notes ( view )

Subscribe to download
Gravity Engine Controller (Gravity Drive Script)

Description
Destination
Controll a structure called "Gravity Engine" in any environment

2 operating mode
MainEngine
Main engine - controls gravity, taking into account all possible variables and the environment.
Features
  • Flight on planets (orbits of planets) with gravity less than 0.5G
  • Ignore artificial gravity, other ships/structures
  • Improved braking curve (harder braking)
  • Speed ​​hold (cruise control)
  • Hold the speed of the object the camera is looking at
ThrusterAssist
Help thrusters - Controls gravity only by getting data of the current force of thrusters. Increased performance, reduced functionality
Features
  • Increasing the force of thrusters

Features independent of operating mode
  • Reduces torque by override the gyroscope
  • Automatically selects the cockpit you are sitting in if the main cockpit is not defined
  • Enables gravity for walking around the ship while waiting
  • Can be used as a gravity gun

Override gyroscopes
Disabled
Gyroscopes will not reduce the torque generated by the deviation of the centers of mass
Enabled (Resistance Mode)
Gyroscopes will partially reduce torque
In the absence of user input (if you do not touch the Q/E buttons and do not move the mouse), completely blocks the torque
Enabled (Vector Mode)
Gyroscopes will completely block torque
Possibly unusual behavior!

Install
Requared
  1. Gravity generators
  2. Artificial mass
  3. Cockpit or remote control
  4. Gyroscopes
Optional
  1. Text panel for displaying information
  2. Camera for raycast
Step by step instructions
  1. Build a ship with the requared blocks
  2. Load the script into the program block
  3. Ready!

Settings and arguments
Settings (Custom Data of program block)
  1. The name of the ship's control unit (Automatic, preferably not touched)
  2. The name of the text panel for displaying the status (To indicate the screen inside the Cockpit, etc., enter Name*ID, where Name is the name of the block, ID is the address of the screen in the block (starts from 0), if not specified, the status will be displayed on the program block)
  3. Group name (optional)
  4. Operating mode (MainEngine/ThrusterAssist)
  5. Deceleration multiplier, i.e. how hard to slow down (from 0.001 to 2147483647)
  6. Should the script use gyroscopes (Enter True if yes, or False if not)
  7. Gyro multiplier, i.e. Gyro sensitivity (from 0.001 to 2147483647)
  8. Whether to control gyroscopes via vector (Enter True to enable vector mode, or False to enable resistance mode, use setting #6 to disable)
  9. Gyroscope control multiplier, i.e. gyroscope sensitivity in vector mode (from 0.001 to 2147483647)
  10. Name of the camera used to get the speed of the object i.e. raycast
  11. Standard cruise control speed (The speed that a stopped ship will pick up when the cruise control is turned on)
  12. Strength of gravity in standby mode(To walk)
  13. Advanced gyroscope control (Enter True to enable or False to enable)
Arguments
Argument
Description
OnOff
Enable/Disable script
ToggleDampener
Enable/Disable speed dampener
NextMode
Switch engine operation modes Main engine/Help thrusters
ChangeMode MainEngine
Enable "Main engine" operation mode
ChangeMode ThrusterAssist
Enable "Help thrusters" operation mode
ToggleGyroOverride
Enable/Disable use gyroscopes
ToggleGyroMode
Switches the gyroscope control mode Resistance/Vector
ToggleAdvancedGyro
Enable/Disable advanced gyro control
ToggleCruise
Enable/Disable cruise control
RaycastCruise
Enable cruise control, and set the speed of the object the camera is looking at
CruiseAdd [X]
Change cruise control speed to "X" m/s
OnOffToGravityGun
Enable/Disable the script, when disabled, sets the maximum gravity directed forward
OnOffToIddleGravity
Enable/Disable the script, when disabled sets gravity as in standby mode
SetLang [X]
Set "X" language, accepted EN,UA,RU
Popular Discussions View All (1)
2
7 Feb, 2023 @ 11:31am
Проблемы / Issues
Siptrixed
10 Comments
Bullet 2 Dec, 2023 @ 2:12am 
looks like works correctly when gyro power isn't overpowered
Bullet 1 Dec, 2023 @ 4:32pm 
Is It possible to change control A/D buttons as strafe instead of turn left/right?
Siptrixed  [author] 9 May, 2023 @ 4:42pm 
@KKComice Fixed
KKComice 14 Apr, 2023 @ 3:43pm 
Hi great script love the anti torque but i'm having issues with the script when servers restart or using the nexus server jump the script needs to be recompiled or else the ship will fly off wildly other gravity drive scripts don't have this problem i'm no coder but a fix that would help ships not fly off is keeping the mass blocks off until you need to move like what your script does with the gravity generator a fix would be amazing thank you for this script
Longeres 7 Feb, 2023 @ 8:52am 
Скрипт богов! 100 лет пытался настроить или решить эту проблему механически, ибо в программировании 0, но ты буквально сделал все за меня. Спасибо :LDODheart:
BigSmoke. 11 Mar, 2022 @ 5:19pm 
The best script and the best scripter :steamhappy:
ZipeviL 11 Mar, 2022 @ 9:12am 
Amazing stuff. Thank you.
ServTechnic 9 Mar, 2022 @ 11:58am 
This is the best Gravity script in the workshop.
Siptrixed  [author] 2 Jul, 2020 @ 4:22pm 
blackwatch Yes you just need change variable to change language from Russian to English
Blacky Watchy 2 Jul, 2020 @ 11:39am 
wait. the script have self translate? it is epic!!!