C# Class Box2DX.Common.Settings

显示文件 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_oe static_oe property

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

AngularSlop public_oe static_oe 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_oe static_oe 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_oe static_oe property

public static float FLT_EPSILON
return float

FLT_MAX public_oe static_oe property

public static float FLT_MAX
return float

LinearSleepTolerance public_oe static_oe property

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

LinearSlop public_oe static_oe 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_oe static_oe property

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

MaxAngularVelocity public_oe static_oe 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_oe static_oe property

public static float MaxAngularVelocitySquared
return float

MaxLinearCorrection public_oe static_oe property

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

MaxLinearVelocity public_oe static_oe 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_oe static_oe property

public static float MaxLinearVelocitySquared
return float

MaxManifoldPoints public_oe static_oe property

public static int MaxManifoldPoints
return int

MaxPairs public_oe static_oe property

public static int MaxPairs
return int

MaxPolygonVertices public_oe static_oe property

public static int MaxPolygonVertices
return int

MaxProxies public_oe static_oe property

public static int MaxProxies
return int

MaxTOIContactsPerIsland public_oe static_oe property

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

MaxTOIJointsPerIsland public_oe static_oe property

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

Pi public_oe static_oe property

public static float Pi
return float

TimeToSleep public_oe static_oe property

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

ToiSlop public_oe static_oe 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_oe static_oe 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