C# Class RumbleController, goalBall

This class controls what happens when we need to make an XBOX controller Rumble
Inheritance: MonoBehaviour
Afficher le fichier Open project: DrexelGoalBall/goalBall Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

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.
Résultat void

RumbleBursts() public méthode

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