C# 클래스 FarseerPhysics.Controllers.VelocityLimitController

Put a limit on the linear (translation - the movespeed) and angular (rotation) velocity of bodies added to this controller.
상속: Controller
파일 보기 프로젝트 열기: prime31/Nez

공개 프로퍼티들

프로퍼티 타입 설명
LimitAngularVelocity bool
LimitLinearVelocity bool

공개 메소드들

메소드 설명
AddBody ( Body body ) : void
RemoveBody ( Body body ) : void
Update ( float dt ) : void
VelocityLimitController ( ) : System

Initializes a new instance of the VelocityLimitController class. Sets the max linear velocity to Settings.MaxTranslation Sets the max angular velocity to Settings.MaxRotation

VelocityLimitController ( float maxLinearVelocity, float maxAngularVelocity ) : System

Initializes a new instance of the VelocityLimitController class. Pass in 0 or float.MaxValue to disable the limit. maxAngularVelocity = 0 will disable the angular velocity limit.

메소드 상세

AddBody() 공개 메소드

public AddBody ( Body body ) : void
body FarseerPhysics.Dynamics.Body
리턴 void

RemoveBody() 공개 메소드

public RemoveBody ( Body body ) : void
body FarseerPhysics.Dynamics.Body
리턴 void

Update() 공개 메소드

public Update ( float dt ) : void
dt float
리턴 void

VelocityLimitController() 공개 메소드

Initializes a new instance of the VelocityLimitController class. Sets the max linear velocity to Settings.MaxTranslation Sets the max angular velocity to Settings.MaxRotation
public VelocityLimitController ( ) : System
리턴 System

VelocityLimitController() 공개 메소드

Initializes a new instance of the VelocityLimitController class. Pass in 0 or float.MaxValue to disable the limit. maxAngularVelocity = 0 will disable the angular velocity limit.
public VelocityLimitController ( float maxLinearVelocity, float maxAngularVelocity ) : System
maxLinearVelocity float The max linear velocity.
maxAngularVelocity float The max angular velocity.
리턴 System

프로퍼티 상세

LimitAngularVelocity 공개적으로 프로퍼티

public bool LimitAngularVelocity
리턴 bool

LimitLinearVelocity 공개적으로 프로퍼티

public bool LimitLinearVelocity
리턴 bool