C# Class BEPUphysics.Settings.MotionSettings

Contains global settings about motion updating.
Datei anzeigen Open project: Indiefreaks/igf

Public Properties

Property Type Description
CCDFilter CCDFilter
ConserveAngularMomentum bool
DefaultPositionUpdateMode PositionUpdateMode
UseExtraExpansionForContinuousBoundingBoxes bool
UseRk4AngularIntegration bool

Private Methods

Method Description
DefaultCCDFilter ( System.Entity entity, Collidable other, CollidablePairHandler pair ) : bool
MotionSettings ( ) : BEPUphysics.PositionUpdating
PairAllowsCCD ( System.Entity entity, CollidablePairHandler pair ) : bool

Property Details

CCDFilter public_oe static_oe property

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
return CCDFilter

ConserveAngularMomentum public_oe static_oe property

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
return bool

DefaultPositionUpdateMode public_oe static_oe property

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

UseExtraExpansionForContinuousBoundingBoxes public_oe static_oe property

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
return bool

UseRk4AngularIntegration public_oe static_oe property

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
return bool