IMyCubeGridGetClosestCorner Method |
[This is preliminary documentation and is subject to change.]
Gets position of closest cell corner
Namespace: VRage.Game.ModAPIAssembly: VRage.Game (in VRage.Game.dll) Version: 1.0.0.0
Syntax 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:
Vector3Fractional position of corner in grid space
See Also