C# Class RumbleController, goalBall

This class controls what happens when we need to make an XBOX controller Rumble
Inheritance: MonoBehaviour
显示文件 Open project: DrexelGoalBall/goalBall Class Usage Examples

Public Methods

Method Description
BasicRumble ( float t, float lS, float rS ) : void

Rumble the controller with the following parameters

RumbleBursts ( int bursts, float lS, float rS ) : void

This function allows for bursts of Vibration

Private Methods

Method Description
RumbleAfterDelay ( float delay, float t, float lS, float rS ) : IEnumerator

Coroutine made to have short rumbles over time.

Update ( ) : void

Controls the vibration of the player one controller. When the above variables update it will rumble accordingly.

VibrateForJoystickType ( Joystick, joystick, float lS, float rS ) : void

Execute the correct vibration method for the type of joystick

Method Details

BasicRumble() public method

Rumble the controller with the following parameters
public BasicRumble ( float t, float lS, float rS ) : void
t float How long with the rumble last
lS float The left strength of the rumble
rS float the right strength of the rumble.
return void

RumbleBursts() public method

This function allows for bursts of Vibration
public RumbleBursts ( int bursts, float lS, float rS ) : void
bursts int
lS float
rS float
return void