C# Class FarseerPhysics.Common.Settings

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

Enable/Disable sleeping
public static bool AllowSleep
return bool

ContinuousPhysics public_oe static_oe property

Enable/Disable CCD
public static bool ContinuousPhysics
return bool

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

Enable/Disable warmstarting
public static bool EnableWarmstarting
return bool

PositionIterations public_oe static_oe property

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

VelocityIterations public_oe static_oe property

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