API ReferenceGE Extensionsflowgraphnodesenvironment
Simple Planet Node
- **File:** `flowgraph/nodes/environment/simplePlanet.lua`
Overview
- File:
flowgraph/nodes/environment/simplePlanet.lua - Name: Simple Planet
- Category:
once_p_duration
Creates a planet with given parameters that applies gravitational pull to a vehicle via obj:setPlanets().
Pin Schema
| Dir | Type | Name | Description |
|---|---|---|---|
| in | number | vehId | Vehicle ID to apply gravity to. |
| in | vec3 | position | Position to spawn planet. |
| in | number | radius | Radius of the planet. |
| in | number | mass | Mass of the planet. |
Legacy Pins
vehID→vehId
Key Methods
| Method | Description |
|---|---|
workOnce() | Sends obj:setPlanets() command to the vehicle with position, radius, mass. |
onNodeReset() | Clears planets on the vehicle via obj:setPlanets({}). |
_executionStopped() | Calls onNodeReset(). |
See Also
- Directional Gravity - Related reference
- Get Cloud by ID - Related reference
- Get Fog - Related reference
- FlowGraph Guide - Guide