Method TransformWorld
| Edit this page View SourceTransformWorld(Vector3)
Translates the grid by a world-space vector. Internally shifts content by the nearest integer voxel offset.
Declaration
public void TransformWorld(Vector3 translation)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | translation | World-space translation. |
TransformWorld(Vector3, Vector3)
Translates the grid so that origin moves to target.
Equivalent to TransformWorld(target - origin).
Declaration
public void TransformWorld(Vector3 origin, Vector3 target)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | origin | World-space origin point. |
| Vector3 | target | World-space target point. |