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.ModAPIAssembly: 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
)
Function GetFreeDestination (
originalDestination As Vector3D,
checkRadius As Single,
Optional shipRadius As Single = 0F
) As Vector3D
Vector3D GetFreeDestination(
Vector3D originalDestination,
float checkRadius,
float shipRadius = 0f
)
abstract GetFreeDestination :
originalDestination : Vector3D *
checkRadius : float32 *
?shipRadius : float32
(* Defaults:
let _shipRadius = defaultArg shipRadius 0f
*)
-> Vector3D
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:
Vector3DAdjusted position
See Also