C# Class FarseerPhysics.Common.Settings

Afficher le fichier Open project: scastle/Solitude

Méthodes publiques

Свойство Type Description
AllowSleep bool
ContinuousPhysics bool
EnableDiagnostics bool
EnableWarmstarting bool
PositionIterations int
VelocityIterations int

Méthodes publiques

Méthode 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 méthode

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

MixRestitution() public static méthode

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

Property Details

AllowSleep public_oe static_oe property

Enable/Disable sleeping
public static bool AllowSleep
Résultat bool

ContinuousPhysics public_oe static_oe property

Enable/Disable CCD
public static bool ContinuousPhysics
Résultat 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
Résultat bool

EnableWarmstarting public_oe static_oe property

Enable/Disable warmstarting
public static bool EnableWarmstarting
Résultat bool

PositionIterations public_oe static_oe property

The number of position iterations used in the solver.
public static int PositionIterations
Résultat int

VelocityIterations public_oe static_oe property

The number of velocity iterations used in the solver.
public static int VelocityIterations
Résultat int