Click or drag to resize

GridMapWorldToMap Method

Returns the coordinates of the grid cell containing the given point.

pos should be in the GridMap's local coordinate space.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public Vector3 WorldToMap(
	Vector3 pos
)

Parameters

pos
Type: GodotVector3

[Missing <param name="pos"/> documentation for "M:Godot.GridMap.WorldToMap(Godot.Vector3)"]

Return Value

Type: Vector3

[Missing <returns> documentation for "M:Godot.GridMap.WorldToMap(Godot.Vector3)"]

See Also