Modifier

Partager via


TestMotionController Class

Definition

Utility class to use a simulated motion controller

public ref class TestMotionController : Microsoft::MixedReality::Toolkit::Tests::TestController
public class TestMotionController : Microsoft.MixedReality.Toolkit.Tests.TestController
type TestMotionController = class
    inherit TestController
Public Class TestMotionController
Inherits TestController
Inheritance
TestMotionController

Constructors

TestMotionController(Handedness)

Fields

handedness (Inherited from TestController)
position (Inherited from TestController)
rotation (Inherited from TestController)
simulationService (Inherited from TestController)

Methods

Click()

Combined sequence of selecting and unselecting

GetPointer<T>()

Return the first pointer of given type that is associated with this controller

(Inherited from TestController)
GetVelocity()

Return the velocity of the simulated controller

(Inherited from TestController)
Hide(Boolean)

Hide the controller

Move(Vector3, Int32)

Move the controller by some given delta

MoveTo(Vector3, Int32, Boolean)

Move controller to given position over some number of frames

SelectAndThrowAt(Vector3, Boolean, Int32)

Combined sequence of selecting, moving, and releasing.

SetRotation(Quaternion, Int32)

Rotate the controller to new rotation

SetState(SimulatedMotionControllerButtonState, Boolean)

Changes the state of the simulated motion controller.

Show(Vector3, Boolean)

Show the controller at a specified position

Applies to