![]() |
CybSDK C#
4.3
|
Main interface all Virtualizer Devices have to implement. More...
Public Member Functions | |
bool | Open () |
Opens the connection to the Virtualizer device. More... | |
bool | IsOpen () |
Checks if the connection was opened before. More... | |
bool | Close () |
Closes the connection to the Virtualizer device. More... | |
VirtDeviceInfo | GetDeviceInfo () |
Returns the USB infos of this device. More... | |
float | GetPlayerHeight () |
Returns the current player height relative to the default height. More... | |
void | ResetPlayerHeight () |
Assigns the current height to the default height. More... | |
float | GetPlayerOrientation () |
Returns the orientation of the player as an absolute value. More... | |
void | ResetPlayerOrientation () |
Assigns the current orientation to the default vector. More... | |
float | GetMovementSpeed () |
Returns the current movement speed in meters per second. More... | |
float | GetMovementDirection () |
Returns the movement direction relative to the current player orientation. More... | |
bool | HasHaptic () |
Checks if the Virtualizer device supports haptic feedback. More... | |
void | HapticPlay () |
Play a signal on the haptic unit. More... | |
void | HapticStop () |
Stop the haptic unit. More... | |
void | HapticSetGain (int gain) |
Set the gain (dB) level of the haptic unit. More... | |
void | HapticSetFrequency (int frequency) |
Set the frequency (Hz) of a sine wave on the haptic unit. More... | |
void | HapticSetVolume (int volume) |
Sets the haptic feedback (change of amplitude) in the baseplate. More... | |
Main interface all Virtualizer Devices have to implement.
bool CybSDK.IVirtDevice.Open | ( | ) |
Opens the connection to the Virtualizer device.
No other application can open this device at the same time.
Implements CybSDK.CVirtDevice.
bool CybSDK.IVirtDevice.IsOpen | ( | ) |
Checks if the connection was opened before.
Implements CybSDK.CVirtDevice.
bool CybSDK.IVirtDevice.Close | ( | ) |
Closes the connection to the Virtualizer device.
Implements CybSDK.CVirtDevice.
VirtDeviceInfo CybSDK.IVirtDevice.GetDeviceInfo | ( | ) |
Returns the USB infos of this device.
float CybSDK.IVirtDevice.GetPlayerHeight | ( | ) |
Returns the current player height relative to the default height.
The default height is set by the ResetPlayerHeight method.
height < -threshold: crouching
height > threshold: jumping
Implements CybSDK.CVirtDevice.
void CybSDK.IVirtDevice.ResetPlayerHeight | ( | ) |
Assigns the current height to the default height.
This method should be called while the player is asked to stand upright.
Implements CybSDK.CVirtDevice.
float CybSDK.IVirtDevice.GetPlayerOrientation | ( | ) |
Returns the orientation of the player as an absolute value.
The origin is set by the ResetPlayerOrientation method and increases clockwise.
Implements CybSDK.CVirtDevice.
void CybSDK.IVirtDevice.ResetPlayerOrientation | ( | ) |
Assigns the current orientation to the default vector.
This method should be called while the player is asked to look forward.
This orientation should be used to calibrate the HMD.
Implements CybSDK.CVirtDevice.
float CybSDK.IVirtDevice.GetMovementSpeed | ( | ) |
Returns the current movement speed in meters per second.
Implements CybSDK.CVirtDevice.
float CybSDK.IVirtDevice.GetMovementDirection | ( | ) |
Returns the movement direction relative to the current player orientation.
The origin is the GetPlayerOrientation method and increases clockwise.
Implements CybSDK.CVirtDevice.
bool CybSDK.IVirtDevice.HasHaptic | ( | ) |
Checks if the Virtualizer device supports haptic feedback.
Implements CybSDK.CVirtDevice.
void CybSDK.IVirtDevice.HapticPlay | ( | ) |
Play a signal on the haptic unit.
Implements CybSDK.CVirtDevice.
void CybSDK.IVirtDevice.HapticStop | ( | ) |
Stop the haptic unit.
Implements CybSDK.CVirtDevice.
void CybSDK.IVirtDevice.HapticSetGain | ( | int | gain | ) |
Set the gain (dB) level of the haptic unit.
gain | The value can be 0, 1, 2 or 3. |
Implements CybSDK.CVirtDevice.
void CybSDK.IVirtDevice.HapticSetFrequency | ( | int | frequency | ) |
Set the frequency (Hz) of a sine wave on the haptic unit.
frequency | The value is valid between 0Hz and 80Hz. |
Implements CybSDK.CVirtDevice.
void CybSDK.IVirtDevice.HapticSetVolume | ( | int | volume | ) |
Sets the haptic feedback (change of amplitude) in the baseplate.
volume | The value is valid between 0 (no feedback) and 100 (full feedback). |
Implements CybSDK.CVirtDevice.