C# 클래스 BEPUphysicsDemos.SampleCode.UprightSpring

Spring that attempts to keep a target entity oriented in a given direction by applying corrective torques.
상속: Updateable, IDuringForcesUpdateable
파일 보기 프로젝트 열기: karolkuna/Time-Series-Prediction-Using-Neural-Networks

공개 메소드들

메소드 설명
UprightSpring ( Entity entity, Vector3 upVector, float minimumAngle, float maximumAngle, float correctionFactor ) : System

Constructs a constraint to keep entities upright.

비공개 메소드들

메소드 설명
IDuringForcesUpdateable ( float dt ) : void

Updates the upright constraint. Called automatically by its owning space.

메소드 상세

UprightSpring() 공개 메소드

Constructs a constraint to keep entities upright.
public UprightSpring ( Entity entity, Vector3 upVector, float minimumAngle, float maximumAngle, float correctionFactor ) : System
entity Entity Entity to try to keep upright.
upVector Vector3 Direction to try to orient the entity with.
minimumAngle float Minimum angle between the car's transformed up vector and the actual up vector /// before the constraint begins to apply forces.
maximumAngle float Maximum angle between the car's transformed up vector and the actual up vector /// past which the constraint 'gives up' and lets the entity tumble.
correctionFactor float Factor of the orientation error to apply in angular velocity each frame.
리턴 System