C# Класс Project290.Physics.Controllers.AbstractForceController

Наследование: Controller
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
DecayCurve Microsoft.Xna.Framework.Curve
ForceType ForceTypes
StrengthCurve Microsoft.Xna.Framework.Curve

Защищенные свойства (Protected)

Свойство Тип Описание
Randomize System.Random

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

Метод Описание
AbstractForceController ( ) : System

Constructor

AbstractForceController ( TimingModes mode ) : System

Overloaded Contstructor with supplying Timing Mode

ApplyForce ( float dt, float strength ) : void

Apply the force supplying strength (wich is modified in Update() according to the TimingMode

Trigger ( ) : void

Triggers the trigger modes (Trigger and Curve)

Update ( float dt ) : void

Inherited from Controller Depending on the TimingMode perform timing logic and call ApplyForce()

Защищенные методы

Метод Описание
GetDecayMultiplier ( Body body ) : float

Calculate the Decay for a given body. Meant to ease force development and stick to the DRY principle and provide unified and predictable decay math.

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

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

Constructor
public AbstractForceController ( ) : System
Результат System

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

Overloaded Contstructor with supplying Timing Mode
public AbstractForceController ( TimingModes mode ) : System
mode TimingModes
Результат System

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

Apply the force supplying strength (wich is modified in Update() according to the TimingMode
public abstract ApplyForce ( float dt, float strength ) : void
dt float
strength float The strength
Результат void

GetDecayMultiplier() защищенный Метод

Calculate the Decay for a given body. Meant to ease force development and stick to the DRY principle and provide unified and predictable decay math.
protected GetDecayMultiplier ( Body body ) : float
body Project290.Physics.Dynamics.Body The body to calculate decay for
Результат float

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

Triggers the trigger modes (Trigger and Curve)
public Trigger ( ) : void
Результат void

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

Inherited from Controller Depending on the TimingMode perform timing logic and call ApplyForce()
public Update ( float dt ) : void
dt float
Результат void

Описание свойств

DecayCurve публичное свойство

Curve to be used for Decay in Curve mode
public Curve,Microsoft.Xna.Framework DecayCurve
Результат Microsoft.Xna.Framework.Curve

ForceType публичное свойство

The Forcetype of the instance
public ForceTypes ForceType
Результат ForceTypes

Randomize защищенное свойство

Provided for reuse to provide Variation functionality in inheriting classes
protected Random,System Randomize
Результат System.Random

StrengthCurve публичное свойство

Curve used by Curve Mode as an animated multiplier for the force strength. Only positions between 0 and 1 are considered as that range is stretched to have ImpulseLength.
public Curve,Microsoft.Xna.Framework StrengthCurve
Результат Microsoft.Xna.Framework.Curve