Click or drag to resize

PosAndRotExtensionsSetPosAndRot Method

Sets position and rotation in one call.///

Namespace:  KSPDev.Extensions
Assembly:  KSPDev_Utils.1.2 (in KSPDev_Utils.1.2.dll) Version: 1.2 for KSP v1.6+
Syntax
C#
public static void SetPosAndRot(
	this Transform node,
	PosAndRot posAndRot
)
Request Example View Source

Parameters

node
Type: UnityEngineTransform
The node to update.
posAndRot
Type: KSPDev.TypesPosAndRot
The position and rotation in wolrd space.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Transform. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also