Click or drag to resize
IMyCubeGridFixTargetCube Method

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

Clamps fractional grid position to nearest cell (prefers neighboring occupied cell before empty)

Namespace: VRage.Game.ModAPI
Assembly: VRage.Game (in VRage.Game.dll) Version: 1.0.0.0
Syntax
C#
void FixTargetCube(
	out Vector3I cube,
	Vector3 fractionalGridPosition
)

Parameters

cube
Type: Vector3I
Return value
fractionalGridPosition
Type: VRageMathVector3
Fractional position in grid space
See Also