C# 클래스 Indiefreaks.Xna.Input.Vibration

파일 보기 프로젝트 열기: Indiefreaks/igf 1 사용 예제들

공개 메소드들

메소드 설명
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