void Update() { var forward = forwardSrc.GetAxes(); var up = upSrc.GetAxes(); var right = rightSrc.GetAxes(); var isLocal = isLocalSrc.GetBool(); output.right = isLocal ? right : Vector3.right; output.up = isLocal ? up : Vector3.up; output.forward = isLocal ? forward : Vector3.forward; }
public bool GetBool() { return(!origSrc.GetBool()); }