C# Class Project290.Physics.Settings

Show file Open project: scastle/Solitude

Public Properties

Property Type Description
AllowSleep bool
ContinuousPhysics bool
EnableDiagnostics bool
EnableWarmstarting bool
MaxPolygonVertices int
PositionIterations int
TOIPositionIterations int
TOIVelocityIterations int
UseFPECollisionCategories bool
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 Continuous Collision Detection (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 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
return bool

EnableWarmstarting public static property

Enable/Disable warmstarting
public static bool EnableWarmstarting
return bool

MaxPolygonVertices public static property

The maximum number of vertices on a convex polygon.
public static int MaxPolygonVertices
return int

PositionIterations public static property

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

TOIPositionIterations public static property

The number of position iterations in the TOI solver
public static int TOIPositionIterations
return int

TOIVelocityIterations public static property

The number of velocity iterations in the TOI solver
public static int TOIVelocityIterations
return int

UseFPECollisionCategories public static 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
return bool

VelocityIterations public static property

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