/// <summary> /// The GetControllerOrigin method is used to find the controller's origin. /// </summary> /// <param name="controllerReference">The reference to the controller to get the origin for.</param> /// <returns>The transform of the controller origin or if an origin is not set then the transform parent.</returns> public static Transform GetControllerOrigin(VRTK_ControllerReference controllerReference) { return(VRTK_SDK_Bridge.GetControllerOrigin(controllerReference)); }
/// <summary> /// The GetControllerOrigin method is used to find the controller's origin. /// </summary> /// <param name="controller">The GameObject to get the origin for.</param> /// <returns>The transform of the controller origin or if an origin is not set then the transform parent.</returns> public static Transform GetControllerOrigin(GameObject controller) { return(VRTK_SDK_Bridge.GetControllerOrigin(controller)); }