C# Class Box2DX.Common.Settings

Show file Open project: danielpcox/Crisis-at-Swiss-Station Class Usage Examples

Public Properties

Property Type Description
AngularSleepTolerance float
AngularSlop float
ContactBaumgarte float
FLT_EPSILON float
FLT_MAX float
LinearSleepTolerance float
LinearSlop float
MaxAngularCorrection float
MaxAngularVelocity float
MaxAngularVelocitySquared float
MaxLinearCorrection float
MaxLinearVelocity float
MaxLinearVelocitySquared float
MaxManifoldPoints int
MaxPairs int
MaxPolygonVertices int
MaxProxies int
MaxTOIContactsPerIsland int
MaxTOIJointsPerIsland int
Pi float
TimeToSleep float
ToiSlop float
VelocityThreshold float

Public Methods

Method Description
FORCE_INV_SCALE ( float x ) : float
FORCE_INV_SCALE2 ( x x ) : float
FORCE_SCALE ( float x ) : float
FORCE_SCALE2 ( x x ) : float
MixFriction ( float friction1, float friction2 ) : float

Friction mixing law. Feel free to customize this.

MixRestitution ( float restitution1, float restitution2 ) : float

Restitution mixing law. Feel free to customize this.

Method Details

FORCE_INV_SCALE() public static method

public static FORCE_INV_SCALE ( float x ) : float
x float
return float

FORCE_INV_SCALE2() public static method

public static FORCE_INV_SCALE2 ( x x ) : float
x x
return float

FORCE_SCALE() public static method

public static FORCE_SCALE ( float x ) : float
x float
return float

FORCE_SCALE2() public static method

public static FORCE_SCALE2 ( x x ) : float
x x
return float

MixFriction() public static method

Friction mixing law. Feel free to customize this.
public static MixFriction ( float friction1, float friction2 ) : float
friction1 float
friction2 float
return float

MixRestitution() public static method

Restitution mixing law. Feel free to customize this.
public static MixRestitution ( float restitution1, float restitution2 ) : float
restitution1 float
restitution2 float
return float

Property Details

AngularSleepTolerance public static property

A body cannot sleep if its angular velocity is above this tolerance.
public static float AngularSleepTolerance
return float

AngularSlop public static property

A small angle used as a collision and constraint tolerance. Usually it is chosen to be numerically significant, but visually insignificant.
public static float AngularSlop
return float

ContactBaumgarte public static property

This scale factor controls how fast overlap is resolved. Ideally this would be 1 so that overlap is removed in one time step. However using values close to 1 often lead to overshoot.
public static float ContactBaumgarte
return float

FLT_EPSILON public static property

public static float FLT_EPSILON
return float

FLT_MAX public static property

public static float FLT_MAX
return float

LinearSleepTolerance public static property

A body cannot sleep if its linear velocity is above this tolerance.
public static float LinearSleepTolerance
return float

LinearSlop public static property

A small length used as a collision and constraint tolerance. Usually it is chosen to be numerically significant, but visually insignificant.
public static float LinearSlop
return float

MaxAngularCorrection public static property

The maximum angular position correction used when solving constraints. This helps to prevent overshoot.
public static float MaxAngularCorrection
return float

MaxAngularVelocity public static property

The maximum angular velocity of a body. This limit is very large and is used to prevent numerical problems. You shouldn't need to adjust this.
public static float MaxAngularVelocity
return float

MaxAngularVelocitySquared public static property

public static float MaxAngularVelocitySquared
return float

MaxLinearCorrection public static property

The maximum linear position correction used when solving constraints. This helps to prevent overshoot.
public static float MaxLinearCorrection
return float

MaxLinearVelocity public static property

The maximum linear velocity of a body. This limit is very large and is used to prevent numerical problems. You shouldn't need to adjust this.
public static float MaxLinearVelocity
return float

MaxLinearVelocitySquared public static property

public static float MaxLinearVelocitySquared
return float

MaxManifoldPoints public static property

public static int MaxManifoldPoints
return int

MaxPairs public static property

public static int MaxPairs
return int

MaxPolygonVertices public static property

public static int MaxPolygonVertices
return int

MaxProxies public static property

public static int MaxProxies
return int

MaxTOIContactsPerIsland public static property

Maximum number of contacts to be handled to solve a TOI island.
public static int MaxTOIContactsPerIsland
return int

MaxTOIJointsPerIsland public static property

Maximum number of joints to be handled to solve a TOI island.
public static int MaxTOIJointsPerIsland
return int

Pi public static property

public static float Pi
return float

TimeToSleep public static property

The time that a body must be still before it will go to sleep.
public static float TimeToSleep
return float

ToiSlop public static property

Continuous collision detection (CCD) works with core, shrunken shapes. This is amount by which shapes are automatically shrunk to work with CCD. This must be larger than LinearSlop.
public static float ToiSlop
return float

VelocityThreshold public static property

A velocity threshold for elastic collisions. Any collision with a relative linear velocity below this threshold will be treated as inelastic.
public static float VelocityThreshold
return float