Click or drag to resize

JoystickSetVibration Method (Single, Single, Single, Single)

Sets vibration level for left and right motors or for the first two motors with a timeout.

Namespace:  Rewired
Assembly:  Rewired_Core (in Rewired_Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public void SetVibration(
	float leftMotorLevel,
	float rightMotorLevel,
	float leftMotorDuration,
	float rightMotorDuration
)

Parameters

leftMotorLevel
Type: SystemSingle
float: 0.0 - 1.0
rightMotorLevel
Type: SystemSingle
float: 0.0 - 1.0
leftMotorDuration
Type: SystemSingle
Length of time in seconds to activate the left motor before it stops.
rightMotorDuration
Type: SystemSingle
Length of time in seconds to activate the right motor before it stops. [0 = Infinite]
See Also