API ReferenceGE Extensionsflowgraphnodesenvironment
Get Gravity
- **File:** `extensions/flowgraph/nodes/environment/getGravity.lua`
Overview
- File:
extensions/flowgraph/nodes/environment/getGravity.lua - Name:
Get Gravity - Category:
provider - Description: Returns the current gravity value from the environment system.
Pin Schema
Input Pins
None.
Output Pins
| Name | Type | Description |
|---|---|---|
gravity | number | Current gravity in m/s². |
Behavior
- work(): Reads the gravity value from
core_environment.getGravity()and outputs it.
Notes
- Default Earth gravity in BeamNG is approximately -9.81 m/s².
- Provider category - continuously outputs without needing flow input.
Tags
#flowgraph #node #ge #environment #gravity
Additional Exports
-
name-string- (see source) -
description-string- (see source) -
pinSchema-table- (see source) -
tags-table- (see source)
See Also
- Directional Gravity - Related reference
- Get Cloud by ID - Related reference
- Get Fog - Related reference
- FlowGraph Guide - Guide