C# Класс FarseerPhysics.Settings

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
allCollisionCallbacksAgree bool
allowSleep bool
continuousPhysics bool
defaultFixtureCollidesWith Category
defaultFixtureCollisionCategories Category
defaultFixtureIgnoreCCDWith Category
enableDiagnostics bool
enableWarmstarting bool
maxPolygonVertices int
maxSubSteps int
positionIterations int
skipSanityChecks bool
toiPositionIterations int
toiVelocityIterations int
useConvexHullPolygons bool
useFPECollisionCategories bool
velocityIterations int

Открытые методы

Метод Описание
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.

Описание методов

mixFriction() публичный статический Метод

Friction mixing law. Feel free to customize this.
public static mixFriction ( float friction1, float friction2 ) : float
friction1 float The friction1.
friction2 float The friction2.
Результат float

mixRestitution() публичный статический Метод

Restitution mixing law. Feel free to customize this.
public static mixRestitution ( float restitution1, float restitution2 ) : float
restitution1 float The restitution1.
restitution2 float The restitution2.
Результат float

Описание свойств

allCollisionCallbacksAgree публичное статическое свойство

If true, all collision callbacks have to return the same value, and agree if there was a collision or not. Swtich this to false to revert to the collision agreement used in FPE 3.3.x
public static bool allCollisionCallbacksAgree
Результат bool

allowSleep публичное статическое свойство

Enable/Disable sleeping
public static bool allowSleep
Результат bool

continuousPhysics публичное статическое свойство

Enable/Disable Continuous Collision Detection (CCD)
public static bool continuousPhysics
Результат bool

defaultFixtureCollidesWith публичное статическое свойство

This is used by the Fixture constructor as the default value for Fixture.collidesWith member.
public static Category defaultFixtureCollidesWith
Результат Category

defaultFixtureCollisionCategories публичное статическое свойство

This is used by the Fixture constructor as the default value for Fixture.collisionCategories member. Note that you may need to change this depending on the setting of UseFPECollisionCategories, above.
public static Category defaultFixtureCollisionCategories
Результат Category

defaultFixtureIgnoreCCDWith публичное статическое свойство

This is used by the Fixture constructor as the default value for Fixture.ignoreCCDWith member.
public static Category defaultFixtureIgnoreCCDWith
Результат Category

enableDiagnostics публичное статическое свойство

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
Результат bool

enableWarmstarting публичное статическое свойство

Enable/Disable warmstarting
public static bool enableWarmstarting
Результат bool

maxPolygonVertices публичное статическое свойство

The maximum number of vertices on a convex polygon.
public static int maxPolygonVertices
Результат int

maxSubSteps публичное статическое свойство

Maximum number of sub-steps per contact in continuous physics simulation.
public static int maxSubSteps
Результат int

positionIterations публичное статическое свойство

The number of position iterations used in the solver.
public static int positionIterations
Результат int

skipSanityChecks публичное статическое свойство

Set this to true to skip sanity checks in the engine. This will speed up the tools by removing the overhead of the checks, but you will need to handle checks yourself where it is needed.
public static bool skipSanityChecks
Результат bool

toiPositionIterations публичное статическое свойство

The number of position iterations in the TOI solver
public static int toiPositionIterations
Результат int

toiVelocityIterations публичное статическое свойство

The number of velocity iterations in the TOI solver
public static int toiVelocityIterations
Результат int

useConvexHullPolygons публичное статическое свойство

If true, it will run a GiftWrap convex hull on all polygon inputs. This makes for a more stable engine when given random input, but if speed of the creation of polygons are more important, you might want to set this to false.
public static bool useConvexHullPolygons
Результат bool

useFPECollisionCategories публичное статическое свойство

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 and defaultFixtureCollisionCategories to Category.All.
public static bool useFPECollisionCategories
Результат bool

velocityIterations публичное статическое свойство

The number of velocity iterations used in the solver.
public static int velocityIterations
Результат int