Click or drag to resize
IMyRemoteControlGetFreeDestination Method
v01.180.0 (Beta)

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

Gets a destination and tries to fix it so that it does not collide with anything

Namespace: Sandbox.ModAPI
Assembly: Sandbox.Common (in Sandbox.Common.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
Vector3D GetFreeDestination(
	Vector3D originalDestination,
	float checkRadius,
	float shipRadius = 0f
)

Parameters

originalDestination
Type: Vector3D
The final destination that the remote wants to get to.
checkRadius
Type: SystemSingle
The maximum radius until which this method should search.
shipRadius (Optional)
Type: SystemSingle
The radius of our ship. Make sure that this is large enough to avoid collision. A value of 0f will use the ship's WorldVolume radius.

Return Value

Type: Vector3D
Adjusted position
See Also