Table of Contents

Class TuringTarget

Namespace
Turing.Core.TuringInput
Assembly
Turing.Core.dll
public class TuringTarget
Inheritance
TuringTarget
Inherited Members
Extension Methods

Properties

ButtonCount

The number of buttons supported by the target.

public int ButtonCount { get; set; }

Property Value

int

IsEnabled

Gets/sets whether the target is enabled.

public bool IsEnabled { get; set; }

Property Value

bool

IsLedEnabled

Gets/sets whether the target's LED is enabled (if it exists).

public bool IsLedEnabled { get; set; }

Property Value

bool

Remarks

Currently only the stylus target has LED support.

IsTapPressed

Gets whether the target is currently tapping against the surface of the zSpace display device.

public bool IsTapPressed { get; }

Property Value

bool

IsVibrating

Checks whether the target is currently vibrating.

public bool IsVibrating { get; }

Property Value

bool

IsVibrationEnabled

Gets/sets whether the target's vibration capabilities are enabled.

public bool IsVibrationEnabled { get; set; }

Property Value

bool

IsVisible

The visibility state of the target.

public bool IsVisible { get; }

Property Value

bool

Remarks

The visibility state is updated internally based on whether the target is currently visible to the tracking cameras.

LedColor

Gets/sets the target's LED color (if it exists).

public Color LedColor { get; set; }

Property Value

Color

Name

The name of the target.

public string Name { get; }

Property Value

string

Points

public Vector3[] Points { get; }

Property Value

Vector3[]

Pose

The currently cached pose in tracker space.

public Pose Pose { get; }

Property Value

Pose

Remarks

This pose will only be updated when the target's corresponding SDK context has been updated.

Methods

IsButtonPressed(int)

Gets whether the specified button is pressed.

public bool IsButtonPressed(int id)

Parameters

id int

The integer id of the specified button.

Returns

bool

True if the specified button is pressed. False otherwise.

SetBlueColor(bool)

public void SetBlueColor(bool isOn)

Parameters

isOn bool

SetRedColor(bool)

public void SetRedColor(bool isOn)

Parameters

isOn bool

StartVibration(int, float)

public void StartVibration(int intensity, float duration = 0.2)

Parameters

intensity int
duration float

StartVibration(VibrationIntensity, float)

public void StartVibration(VibrationIntensity intensity, float duration = 0.2)

Parameters

intensity VibrationIntensity
duration float

StopVibration()

Stops a currently active vibration.

public void StopVibration()

WaitTimeStopVibrationAsync(float)

public Task WaitTimeStopVibrationAsync(float duration)

Parameters

duration float

Returns

Task