示例#1
0
 /// <summary>
 /// The GetControllerOrigin method returns the origin of the given controller.
 /// </summary>
 /// <param name="controller">The controller to retrieve the origin from.</param>
 /// <returns>A Transform containing the origin of the controller.</returns>
 public override Transform GetControllerOrigin(GameObject controller)
 {
     return(VRTK_SDK_Bridge.GetPlayArea());
 }
 /// <summary>
 /// The PlayAreaTransform method is used to retrieve the transform for the play area in the scene.
 /// </summary>
 /// <returns>The transform of the VR Play Area component.</returns>
 public static Transform PlayAreaTransform()
 {
     return(VRTK_SDK_Bridge.GetPlayArea());
 }
 /// <summary>
 /// The GetControllerOrigin method returns the origin of the given controller.
 /// </summary>
 /// <param name="controllerReference">The reference to the controller to retrieve the origin from.</param>
 /// <returns>A Transform containing the origin of the controller.</returns>
 public override Transform GetControllerOrigin(VRTK_ControllerReference controllerReference)
 {
     return(VRTK_SDK_Bridge.GetPlayArea());
 }