JoystickSetVibration(Single, Single, Single, Single) Method |
Sets vibration level for left and right motors or for the first two motors with a timeout.
Namespace: RewiredAssembly: Rewired_Core (in Rewired_Core.dll) Version: 1.0.0+fd80194fe28f6b408ce098e98c53850d307c3a32
Syntaxpublic void SetVibration(
float leftMotorLevel,
float rightMotorLevel,
float leftMotorDuration,
float rightMotorDuration
)
Parameters
- leftMotorLevel Single
- float: 0.0 - 1.0
- rightMotorLevel Single
- float: 0.0 - 1.0
- leftMotorDuration Single
- Length of time in seconds to activate the left motor before it stops.
- rightMotorDuration Single
- Length of time in seconds to activate the right motor before it stops. [0 = Infinite]
See Also