Click or drag to resize

World Methods

The World type exposes the following members.

Methods
  NameDescription
Public methodAdd(Body)
Add a rigid body. Warning: This method is locked during callbacks.
Public methodAdd(Controller)
Warning: This method is locked during callbacks.
Public methodAdd(Joint)
Create a joint to constrain bodies together. This may cause the connected bodies to cease colliding. Warning: This method is locked during callbacks.
Public methodClear
Warning: This method is locked during callbacks.
Public methodClearForces
Call this after you are done with time steps to clear the forces. You normally call this after each call to Step, unless you are performing sub-steps. By default, forces will be automatically cleared, so you don't need to call this function.
Public methodCreateBody
Public methodCreateCapsule(Single, Single, Single, Vector2, Single, BodyType)
Public methodCreateCapsule(Single, Single, Int32, Single, Int32, Single, Vector2, Single, BodyType)
Public methodCreateChain
Creates a chain.
Public methodCreateChainShape
Public methodCreateCircle
Public methodCreateCompoundPolygon
Public methodCreateEdge
Public methodCreateEllipse
Public methodCreateGear
Public methodCreateLineArc
Public methodCreateLoopShape
Public methodCreatePolygon
Public methodCreateRectangle
Public methodCreateRoundedRectangle
Public methodCreateSolidArc
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodQueryAABB(QueryReportFixtureDelegate, AABB)
Query the world for all fixtures that potentially overlap the provided AABB. Inside the callback: Return true: Continues the query Return false: Terminate the query
Public methodQueryAABB(QueryReportFixtureDelegate, AABB)
Query the world for all fixtures that potentially overlap the provided AABB. Inside the callback: Return true: Continues the query Return false: Terminate the query
Public methodRayCast
Ray-cast the world for all fixtures in the path of the ray. Your callback controls whether you get the closest point, any point, or n-points. The ray-cast ignores shapes that contain the starting point. Inside the callback: return -1: ignore this fixture and continue return 0: terminate the ray cast return fraction: clip the ray to this point return 1: don't clip the ray and continue
Public methodRemove(Body)
Destroy a rigid body. Warning: This automatically deletes all associated shapes and joints. Warning: This method is locked during callbacks.
Public methodRemove(Controller)
Warning: This method is locked during callbacks.
Public methodRemove(Joint)
Destroy a joint. This may cause the connected bodies to begin colliding. Warning: This method is locked during callbacks.
Public methodShiftOrigin
Public methodStep(Single)
Take a time step. This performs collision detection, integration, and consraint solution. Warning: This method is locked during callbacks.
Public methodStep(TimeSpan)
Take a time step. This performs collision detection, integration, and consraint solution.
Public methodStep(Single, SolverIterations)
Take a time step. This performs collision detection, integration, and consraint solution. Warning: This method is locked during callbacks.
Public methodStep(TimeSpan, SolverIterations)
Take a time step. This performs collision detection, integration, and consraint solution.
Public methodTestPoint
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Extension Methods
See Also