Click or drag to resize
IMyCubeGridGetClosestCorner Method

[This is preliminary documentation and is subject to change.]

Gets position of closest cell corner

Namespace: VRage.Game.ModAPI
Assembly: VRage.Game (in VRage.Game.dll) Version: 1.0.0.0
Syntax
C#
Vector3 GetClosestCorner(
	Vector3I gridPos,
	Vector3 position
)

Parameters

gridPos
Type: Vector3I
Cell coordinates
position
Type: VRageMathVector3
Position to find nearest corner to. Grid space

Return Value

Type: Vector3
Fractional position of corner in grid space
See Also