C# Class FarseerPhysics.Common.Settings

Show file Open project: scastle/Solitude

Public Properties

Property Type Description
AllowSleep bool
ContinuousPhysics bool
EnableDiagnostics bool
EnableWarmstarting bool
PositionIterations int
VelocityIterations int

Public Methods

Method Description
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

MixFriction() public static method

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

MixRestitution() public static method

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

Property Details

AllowSleep public static property

Enable/Disable sleeping
public static bool AllowSleep
return bool

ContinuousPhysics public static property

Enable/Disable CCD
public static bool ContinuousPhysics
return bool

EnableDiagnostics public static property

Enabling diagnistics causes the engine to gather timing information. You can see how much time it took to solve the contacts, solve CCD and even how long it took to update the controllers.
public static bool EnableDiagnostics
return bool

EnableWarmstarting public static property

Enable/Disable warmstarting
public static bool EnableWarmstarting
return bool

PositionIterations public static property

The number of position iterations used in the solver.
public static int PositionIterations
return int

VelocityIterations public static property

The number of velocity iterations used in the solver.
public static int VelocityIterations
return int