C# Класс Indiefreaks.Xna.Input.Vibration

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
LinearFalloff ( Vibration vibration ) : float

Delegate to apply a linear falloff to the vibration frequency

LinearRamp ( Vibration vibration ) : float

Delegate to apply a linear ramp to the vibration frequency

Vibration ( Motor targetMotor, float frequency, float duration ) : System

Initializes a new instance of the Vibration class.

Vibration ( Motor targetMotor, float frequency, float duration, float>.Func modifier ) : System

Initializes a new instance of the Vibration class.

Приватные методы

Метод Описание
Update ( long dt ) : void

Updates the vibration.

Описание методов

LinearFalloff() публичный статический Метод

Delegate to apply a linear falloff to the vibration frequency
public static LinearFalloff ( Vibration vibration ) : float
vibration Vibration The vibration.
Результат float

LinearRamp() публичный статический Метод

Delegate to apply a linear ramp to the vibration frequency
public static LinearRamp ( Vibration vibration ) : float
vibration Vibration The vibration.
Результат float

Vibration() публичный Метод

Initializes a new instance of the Vibration class.
public Vibration ( Motor targetMotor, float frequency, float duration ) : System
targetMotor Motor The target motor
frequency float The motor frequency.
duration float The duration of the vibration
Результат System

Vibration() публичный Метод

Initializes a new instance of the Vibration class.
public Vibration ( Motor targetMotor, float frequency, float duration, float>.Func modifier ) : System
targetMotor Motor The target motor
frequency float The motor frequency.
duration float The duration of the vibration
modifier float>.Func Frequency modifier delegate
Результат System