AlignTransformsSnapAlign Method |
Aligns the source object so that it's located at the target, and the source and target are
"looking" at the each other.
Namespace:
KSPDev.ModelUtils
Assembly:
KSPDev_Utils.2.5 (in KSPDev_Utils.2.5.dll) Version: 2.5 for KSP v1
Syntaxpublic static void SnapAlign(
Transform source,
Transform sourceChild,
Transform target
)
Request Example
View SourceParameters
- source
- Type: UnityEngineTransform
The object to align. - sourceChild
- Type: UnityEngineTransform
The child node of the source to use as the align point. - target
- Type: UnityEngineTransform
The target object to align with.
Remarks
The object's "look" direction is a forward direction. The resulted
up direction of the source will be the opposite to the target.
See Also