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
IsEnabled
Gets/sets whether the target is enabled.
public bool IsEnabled { get; set; }
Property Value
IsLedEnabled
Gets/sets whether the target's LED is enabled (if it exists).
public bool IsLedEnabled { get; set; }
Property Value
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
IsVibrating
Checks whether the target is currently vibrating.
public bool IsVibrating { get; }
Property Value
IsVibrationEnabled
Gets/sets whether the target's vibration capabilities are enabled.
public bool IsVibrationEnabled { get; set; }
Property Value
IsVisible
The visibility state of the target.
public bool IsVisible { get; }
Property Value
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
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
idintThe 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
isOnbool
SetRedColor(bool)
public void SetRedColor(bool isOn)
Parameters
isOnbool
StartVibration(int, float)
public void StartVibration(int intensity, float duration = 0.2)
Parameters
StartVibration(VibrationIntensity, float)
public void StartVibration(VibrationIntensity intensity, float duration = 0.2)
Parameters
intensityVibrationIntensitydurationfloat
StopVibration()
Stops a currently active vibration.
public void StopVibration()
WaitTimeStopVibrationAsync(float)
public Task WaitTimeStopVibrationAsync(float duration)
Parameters
durationfloat