 | ILinkUtils.DecoupleParts Method |
Decouples the connected parts and breaks down one vessel into two.
Namespace:
KASAPIv2
Assembly:
KAS-API-v2 (in KAS-API-v2.dll) Version: KAS API v2
SyntaxPart DecoupleParts(
Part part1,
Part part2,
DockedVesselInfo vesselInfo1 = null,
DockedVesselInfo vesselInfo2 = null
)
Request Example
View SourceParameters
- part1
- Type: (Default Namespace).Part
The first part of the connection. It must be a direct parent or a child of the
part2.
- part2
- Type: (Default Namespace).Part
The second part of the connection. It must be a direct parent or a child of the
part1.
- vesselInfo1 (Optional)
- Type: (Default Namespace).DockedVesselInfo
The optional info of the vessel that owned the part1 on coupling.
- vesselInfo2 (Optional)
- Type: (Default Namespace).DockedVesselInfo
The optional info of the vessel that owned the part2 on coupling.
Return Value
Type:
PartThe child part that has decoupled from the owner vessel.
Remarks
If the part, being decoupled, has the DockedVesselInfo provided, then additionally to
the decoupling, the method will also restore the old vessel properties. Including the root
part.
See Also