Прочетете на английски Редактиране

Споделяне чрез


SimulatedControllerDataProvider Class

Definition

Produces simulated data every frame that defines the position and rotation of the simulated controller.

C++
public ref class SimulatedControllerDataProvider abstract
Inheritance
SimulatedControllerDataProvider
Derived

Constructors

Fields

cancelRotationKey
IsAlwaysVisibleLeft

If true then the left controller is always visible, regardless of simulating.

IsAlwaysVisibleRight

If true then the right controller is always visible, regardless of simulating.

lastInputTrackedTimestampGaze
lastInputTrackedTimestampLeft
lastInputTrackedTimestampRight
lastSimulationGaze
lastSimulationLeft
lastSimulationRight
mouseRotation
profile

Properties

IsSimulatingLeft

Left controller is controlled by user input.

IsSimulatingRight

Right controller is controlled by user input.

Methods

ResetInput(Handedness)

Reset the controller to its default state.

SimulateUserInput(MouseDelta)

Update controller state based on keyboard and mouse input

Applies to

Продукт Версии
MRTK2 Unity 2018 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0
MRTK2 Unity 2019 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0
MRTK2 Unity 2020 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0