C# 클래스 FarseerPhysics.Settings

파일 보기 프로젝트 열기: prime31/Nez

공개 프로퍼티들

프로퍼티 타입 설명
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