C# 클래스 BEPUphysics.Constraints.TwoEntity.JointLimits.DistanceLimit

A modified distance constraint allowing a range of lengths between two anchor points.
상속: JointLimit, I1DImpulseConstraintWithError, I1DJacobianConstraint
파일 보기 프로젝트 열기: Indiefreaks/igf 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
maximumLength float
minimumLength float

공개 메소드들

메소드 설명
DistanceLimit ( ) : System

Constructs a distance limit joint. To finish the initialization, specify the connections (ConnectionA and ConnectionB) as well as the WorldAnchorA and WorldAnchorB (or their entity-local versions) and the MinimumLength and MaximumLength. This constructor sets the constraint's IsActive property to false by default.

DistanceLimit ( Entity connectionA, Entity connectionB, Vector3 anchorA, Vector3 anchorB, float minimumLength, float maximumLength ) : System

Constructs a distance limit joint.

ExclusiveUpdate ( ) : void

Performs any pre-solve iteration work that needs exclusive access to the members of the solver updateable. Usually, this is used for applying warmstarting impulses.

GetAngularJacobianA ( Vector3 &jacobian ) : void

Gets the angular jacobian entry for the first connected entity.

GetAngularJacobianB ( Vector3 &jacobian ) : void

Gets the angular jacobian entry for the second connected entity.

GetLinearJacobianA ( Vector3 &jacobian ) : void

Gets the linear jacobian entry for the first connected entity.

GetLinearJacobianB ( Vector3 &jacobian ) : void

Gets the linear jacobian entry for the second connected entity.

GetMassMatrix ( float &outputMassMatrix ) : void

Gets the mass matrix of the constraint.

SolveIteration ( ) : float

Calculates and applies corrective impulses. Called automatically by space.

Update ( float dt ) : void

Calculates necessary information for velocity solving.

메소드 상세

DistanceLimit() 공개 메소드

Constructs a distance limit joint. To finish the initialization, specify the connections (ConnectionA and ConnectionB) as well as the WorldAnchorA and WorldAnchorB (or their entity-local versions) and the MinimumLength and MaximumLength. This constructor sets the constraint's IsActive property to false by default.
public DistanceLimit ( ) : System
리턴 System

DistanceLimit() 공개 메소드

Constructs a distance limit joint.
public DistanceLimit ( Entity connectionA, Entity connectionB, Vector3 anchorA, Vector3 anchorB, float minimumLength, float maximumLength ) : System
connectionA Entity First body connected to the distance limit.
connectionB Entity Second body connected to the distance limit.
anchorA Vector3 Connection to the spring from the first connected body in world space.
anchorB Vector3 Connection to the spring from the second connected body in world space.
minimumLength float Minimum distance maintained between the anchors.
maximumLength float Maximum distance allowed between the anchors.
리턴 System

ExclusiveUpdate() 공개 메소드

Performs any pre-solve iteration work that needs exclusive access to the members of the solver updateable. Usually, this is used for applying warmstarting impulses.
public ExclusiveUpdate ( ) : void
리턴 void

GetAngularJacobianA() 공개 메소드

Gets the angular jacobian entry for the first connected entity.
public GetAngularJacobianA ( Vector3 &jacobian ) : void
jacobian Vector3 Angular jacobian entry for the first connected entity.
리턴 void

GetAngularJacobianB() 공개 메소드

Gets the angular jacobian entry for the second connected entity.
public GetAngularJacobianB ( Vector3 &jacobian ) : void
jacobian Vector3 Angular jacobian entry for the second connected entity.
리턴 void

GetLinearJacobianA() 공개 메소드

Gets the linear jacobian entry for the first connected entity.
public GetLinearJacobianA ( Vector3 &jacobian ) : void
jacobian Vector3 Linear jacobian entry for the first connected entity.
리턴 void

GetLinearJacobianB() 공개 메소드

Gets the linear jacobian entry for the second connected entity.
public GetLinearJacobianB ( Vector3 &jacobian ) : void
jacobian Vector3 Linear jacobian entry for the second connected entity.
리턴 void

GetMassMatrix() 공개 메소드

Gets the mass matrix of the constraint.
public GetMassMatrix ( float &outputMassMatrix ) : void
outputMassMatrix float Constraint's mass matrix.
리턴 void

SolveIteration() 공개 메소드

Calculates and applies corrective impulses. Called automatically by space.
public SolveIteration ( ) : float
리턴 float

Update() 공개 메소드

Calculates necessary information for velocity solving.
public Update ( float dt ) : void
dt float Time in seconds since the last update.
리턴 void

프로퍼티 상세

maximumLength 보호되어 있는 프로퍼티

Maximum distance allowed between the anchors.
protected float maximumLength
리턴 float

minimumLength 보호되어 있는 프로퍼티

Minimum distance maintained between the anchors.
protected float minimumLength
리턴 float