C# 클래스 BEPUphysics.Settings.MotionSettings

Contains global settings about motion updating.
파일 보기 프로젝트 열기: Indiefreaks/igf

공개 프로퍼티들

프로퍼티 타입 설명
CCDFilter CCDFilter
ConserveAngularMomentum bool
DefaultPositionUpdateMode PositionUpdateMode
UseExtraExpansionForContinuousBoundingBoxes bool
UseRk4AngularIntegration bool

비공개 메소드들

메소드 설명
DefaultCCDFilter ( System.Entity entity, Collidable other, CollidablePairHandler pair ) : bool
MotionSettings ( ) : BEPUphysics.PositionUpdating
PairAllowsCCD ( System.Entity entity, CollidablePairHandler pair ) : bool

프로퍼티 상세

CCDFilter 공개적으로 정적으로 프로퍼티

Delegate which determines if a given pair should be allowed to run continuous collision detection. This is only called for entities which are continuous and colliding with other objects. By default, this prevents CCD from being used in any pair where the pair's CollisionRule stops collision response.
public static CCDFilter CCDFilter
리턴 CCDFilter

ConserveAngularMomentum 공개적으로 정적으로 프로퍼티

Whether or not to conserve angular momentum. This produces slightly more realistic angular behavior, but can reduce stability. Consider using a smaller timestep, enabling RK4 angular integration, or both. Do not use singular inertia tensors while momentum conservation is enabled. Defaults to false.
public static bool ConserveAngularMomentum
리턴 bool

DefaultPositionUpdateMode 공개적으로 정적으로 프로퍼티

The default position updating mode used by position updateables. Defaults to Discrete.
public static PositionUpdateMode DefaultPositionUpdateMode
리턴 PositionUpdateMode

UseExtraExpansionForContinuousBoundingBoxes 공개적으로 정적으로 프로퍼티

It is possible for an object in danger of being hit by a moving object to have a bounding box which does not contain the resulting motion, and CCD will fail to detect a secondary collision. Setting this to true will take into account nearby objects' velocities and use them to enlarge the bounding box so that secondary collisions are not missed. The larger size of bounding boxes can cause an increase in collision pairs during stressful situations, which can harm performance. Defaults to false.
public static bool UseExtraExpansionForContinuousBoundingBoxes
리턴 bool

UseRk4AngularIntegration 공개적으로 정적으로 프로퍼티

Whether or not to use RK4 angular integration. This can improve simulation quality sometimes, but not always. It has a slight performance impact. Enabling this when ConserveAngularMomentum is set to true may be helpful. Defaults to false.
public static bool UseRk4AngularIntegration
리턴 bool