ObjectManipulator.GetReferenceFrameTransform(SelectEnterEventArgs) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Override this class to provide the transform of the reference frame (e.g. the camera) against which to compute the damping.
This intended for the situation of FPS-style controllers moving forward at constant speed while holding an object, to prevent damping from pushing the body towards the player.
protected virtual UnityEngine.Transform GetReferenceFrameTransform(UnityEngine.XR.Interaction.Toolkit.SelectEnterEventArgs args);
abstract member GetReferenceFrameTransform : UnityEngine.XR.Interaction.Toolkit.SelectEnterEventArgs -> UnityEngine.Transform
override this.GetReferenceFrameTransform : UnityEngine.XR.Interaction.Toolkit.SelectEnterEventArgs -> UnityEngine.Transform
Protected Overridable Function GetReferenceFrameTransform (args As SelectEnterEventArgs) As Transform
Parameters
- args
- UnityEngine.XR.Interaction.Toolkit.SelectEnterEventArgs
Arguments of the OnSelectEntered event that called this function
Returns
The Transform that should be used to define the reference frame or null to use the global reference frame