C# 클래스 Project290.Physics.Controllers.AbstractForceController

상속: Controller
파일 보기 프로젝트 열기: scastle/Solitude

공개 프로퍼티들

프로퍼티 타입 설명
DecayCurve Microsoft.Xna.Framework.Curve
ForceType ForceTypes
StrengthCurve Microsoft.Xna.Framework.Curve

보호된 프로퍼티들

프로퍼티 타입 설명
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