Function GridGraph.TranslateInDirection

TranslateInDirection (int dx, int dz)

Moves the grid by a number of nodes.

Public
IGraphUpdatePromise TranslateInDirection (

int

dx

Number of nodes along the graph's X axis to move by.

int

dz

Number of nodes along the graph's Z axis to move by.

)

Moves the grid by a number of nodes.

This is used by the ProceduralGraphMover component to efficiently move the graph.

All nodes that can stay in the same position will stay. The ones that would have fallen off the edge of the graph will wrap around to the other side and then be recalculated.

Return

An async graph update promise. See IGraphUpdatePromise.