Skip to content

Gravity controller

slava_110 edited this page May 4, 2020 · 2 revisions

Info

Component name: gravitycontroller

Warning: Gravity controller should be placed on station. Otherwise you will get error not_on_station everywhere!

Methods

  • currentGravity():number
    Get current gravity multipiler.
    Returns:
    Current gravity multipiler, null, <reason> if something went wrong

  • setTargetGravity(targetGravity: number)
    Set target station altitude
    Parameters:
    targetGravity - target gravity Returns:
    true if gravity set successfully, false, <reason> if something went wrong

Clone this wiki locally