Language
Edit

ObjectManipulator.GetReferenceFrameTransform(SelectEnterEventArgs) Method

Definition

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

UnityEngine.Transform

The Transform that should be used to define the reference frame or null to use the global reference frame

Applies to