Skip to content

RiverTool ​

Inherits: RefCounted

Edits a river that winds in the 3D viewport. While one river is selected the edit bar is over the viewport and the gizmo of the river has its handles (RiverGizmoPlugin). On top of that: Ctrl+click on the river adds a point there (between the two it is nearest to); Ctrl+click on the ground extends the river from the end that is nearer. The click is one step of Undo.

Variables ​

EditorPluginplugin
RiverEditBarbarnull
RiverVolumerivernull

Methods ​

voiddeactivate()
voidupdate_selection( nodes: Array )
intforward_input( camera: Camera3D, event: InputEvent )
booladd_point_by_ray( world: World3D, origin: Vector3, direction: Vector3 )

Variable descriptions ​

EditorPlugin plugin ​

No description yet.

RiverEditBar bar = null ​

No description yet.

RiverVolume river = null ​

No description yet.

Method descriptions ​

void deactivate() ​

No description yet.

void update_selection( nodes: Array ) ​

The selection changed (or is looked at again): the bar shows for one selected river and goes away otherwise

int forward_input( camera: Camera3D, event: InputEvent ) ​

A click of a 3D viewport: Ctrl+click adds a point (AFTER_GUI_INPUT_STOP when it was used)

bool add_point_by_ray( world: World3D, origin: Vector3, direction: Vector3 ) ​

A Ctrl+click along a ray: on the river it adds a point there, on the ground it extends the nearer end. True when a point was added