C# Class Project290.Physics.Settings

Afficher le fichier Open project: scastle/Solitude

Méthodes publiques

Свойство Type Description
AllowSleep bool
ContinuousPhysics bool
EnableDiagnostics bool
EnableWarmstarting bool
MaxPolygonVertices int
PositionIterations int
TOIPositionIterations int
TOIVelocityIterations int
UseFPECollisionCategories bool
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 Continuous Collision Detection (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 update the controllers. NOTE: If you are using a debug view that shows performance counters, you might want to enable this.
public static bool EnableDiagnostics
Résultat bool

EnableWarmstarting public_oe static_oe property

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

MaxPolygonVertices public_oe static_oe property

The maximum number of vertices on a convex polygon.
public static int MaxPolygonVertices
Résultat int

PositionIterations public_oe static_oe property

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

TOIPositionIterations public_oe static_oe property

The number of position iterations in the TOI solver
public static int TOIPositionIterations
Résultat int

TOIVelocityIterations public_oe static_oe property

The number of velocity iterations in the TOI solver
public static int TOIVelocityIterations
Résultat int

UseFPECollisionCategories public_oe static_oe property

Farseer Physics Engine has a different way of filtering fixtures than Box2d. We have both FPE and Box2D filtering in the engine. If you are upgrading from earlier versions of FPE, set this to true.
public static bool UseFPECollisionCategories
Résultat bool

VelocityIterations public_oe static_oe property

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