C# Класс BEPUphysics.Settings.MotionSettings

Contains global settings about motion updating.
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
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