# Documentation
# IContactGloveManager
An interface that provides access to the ContactGlove API. ContactGloveManagerWithSteamVR implements this interface.
# GetFingerRotationAmplitude
Gets the amount of finger joint rotation.
declaration
float GetFingerRotationAmplitude(HandSides hand, FingerRotationAmplitude_e index)
parameters
name | type | description |
---|---|---|
hand | HandSides | Left hand or right hand |
index | FingerRotationAmplitude_e | finger joint |
return
type | description |
---|---|
float | Amount of rotation (0.0 ~ 1.0) |
# GetFingerTransform
Get the transform of the finger.
declaration
Transform GetFingerTransform(HandSides hand, FingerRotationAmplitude_e bone)
parameters
name | type | description |
---|---|---|
hand | HandSides | Left hand or right hand |
index | FingerRotationAmplitude_e | finger joint |
return
type | description |
---|---|
Transform | Finger Transform |
# Set Vibration
vibrate the glove.
declaration
public void SetVibration(HandSides hand, float amplitude, float frequency, float duration)
parameters
name | type | description |
---|---|---|
hand | HandSides | Left hand or right hand |
amplitude | float | strength of vibration (0.0 ~ 1.0) |
frequency | float | frequency of vibration (Hz) |
duration | float | duration of vibration in seconds |
# Get Vibration
Gets the strength of the glove's vibration.
declaration
public VibrationType GetVibration(HandSides hand)
parameters
name | type | description |
---|---|---|
hand | HandSides | Left hand or right hand |
return
type | description |
---|---|
VibrationType | Vibration strength and frequency |
# Set Haptics
Activates the glove's haptic module.
declaration
public void SetHaptics(HandSides hand, ColliderFinger_e section, bool enable)
parameters
name | type | description |
---|---|---|
hand | HandSides | Left hand or right hand |
section | ColliderFinger_e | Types of finger joints |
enable | bool | Whether to activate |
# GetControllerInput (Bool)
Get the bool type controller input.
declaration
public bool GetControllerInput(HandSides hand, ControllerBoolInputType type)
parameters
name | type | description |
---|---|---|
hand | HandSides | Left hand or right hand |
type | ControllerBoolInputType | Input type |
return
type | description |
---|---|
bool | state of the input |
# GetControllerInput (Float)
Get the input of the float type controller.
declaration
public float GetControllerInput(HandSides hand, ControllerFloatInputType type)
parameters
name | type | description |
---|---|---|
hand | HandSides | Left hand or right hand |
type | ControllerFloatInputType | Input type |
return
type | description |
---|---|
float | state of input |
# AddOnControllerInputHandler
Add a handler that will be called when the controller's input changes from Off to On.
declaration
public void AddOnControllerInputHandler(HandSides hand, ControllerBoolInputType type, ControllerInputHandler handler)
parameters
name | type | description |
---|---|---|
hand | HandSides | Left hand or right hand |
type | ControllerBoolInputType | Input type |
handler | ControllerInputHandler | handler |
# AddOffControllerInputHandler
Add a handler that will be called when the controller input changes from On to Off.
declaration
public void AddOffControllerInputHandler(HandSides hand, ControllerBoolInputType type, ControllerInputHandler handler)
parameters
name | type | description |
---|---|---|
hand | HandSides | Left hand or right hand |
type | ControllerBoolInputType | Input type |
handler | ControllerInputHandler | handler |
# Hand Sides
An enum representing left or right hand.
declaration
public enum Hand Sides
fields
name | type | description |
---|---|---|
Left | HandSides | |
Right | HandSides |
# FingerRotationAmplitude_e
An enum representing the amount of finger joint rotation.
declaration
public enum FingerRotationAmplitude_e
fields
name | type | description |
---|---|---|
LittleProximal | FingerRotationAmplitude_e | Third little finger joint |
LittleIntermediate | FingerRotationAmplitude_e | Second Little Finger Joint |
LittleDistal | FingerRotationAmplitude_e | Little finger first joint |
RingProximal | FingerRotationAmplitude_e | Third finger joint |
RingIntermediate | FingerRotationAmplitude_e | Ring finger second joint |
Ring Distal | Finger Rot |