Game.World
FarseerPhysics.Dynamics.World
Functions
Add(body, findNewContacts)
Add
Parameters
-
body
FarseerPhysics.Dynamics.Body
-
findNewContacts
bool
Add(controller)
Add
Parameters
-
controller
FarseerPhysics.Controllers.Controller
Add(joint)
Add
Parameters
-
joint
FarseerPhysics.Dynamics.Joints.Joint
AddAsync(joint)
AddAsync
Parameters
-
joint
FarseerPhysics.Dynamics.Joints.Joint
AddAsync(body, findNewContacts)
AddAsync
Parameters
-
body
FarseerPhysics.Dynamics.Body
-
findNewContacts
bool
Clear()
Clear
ClearForces()
ClearForces
CreateBody(position, rotation, bodyType, findNewContacts)
CreateBody
Parameters
-
position
Microsoft.Xna.Framework.Vector2
-
rotation
number
-
bodyType
FarseerPhysics.BodyType
-
findNewContacts
bool
Returns
-
FarseerPhysics.Dynamics.Body
CreateCapsule(height, topRadius, topEdges, bottomRadius, bottomEdges, density, position, rotation, bodyType, collisionCategory, collidesWith, findNewContacts)
CreateCapsule
Parameters
-
height
number
-
topRadius
number
-
topEdges
number
-
bottomRadius
number
-
bottomEdges
number
-
density
number
-
position
Microsoft.Xna.Framework.Vector2
-
rotation
number
-
bodyType
FarseerPhysics.BodyType
-
collisionCategory
FarseerPhysics.Dynamics.Category
-
collidesWith
FarseerPhysics.Dynamics.Category
-
findNewContacts
bool
Returns
-
FarseerPhysics.Dynamics.Body
CreateCapsule(height, endRadius, density, position, rotation, bodyType, collisionCategory, collidesWith, findNewContacts)
CreateCapsule
Parameters
-
height
number
-
endRadius
number
-
density
number
-
position
Microsoft.Xna.Framework.Vector2
-
rotation
number
-
bodyType
FarseerPhysics.BodyType
-
collisionCategory
FarseerPhysics.Dynamics.Category
-
collidesWith
FarseerPhysics.Dynamics.Category
-
findNewContacts
bool
Returns
-
FarseerPhysics.Dynamics.Body
CreateCapsuleHorizontal(width, endRadius, density, position, rotation, bodyType, collisionCategory, collidesWith, findNewContacts)
CreateCapsuleHorizontal
Parameters
-
width
number
-
endRadius
number
-
density
number
-
position
Microsoft.Xna.Framework.Vector2
-
rotation
number
-
bodyType
FarseerPhysics.BodyType
-
collisionCategory
FarseerPhysics.Dynamics.Category
-
collidesWith
FarseerPhysics.Dynamics.Category
-
findNewContacts
bool
Returns
-
FarseerPhysics.Dynamics.Body
CreateChain(start, endparam, linkWidth, linkHeight, numberOfLinks, linkDensity, attachRopeJoint)
CreateChain
Parameters
-
start
Microsoft.Xna.Framework.Vector2
-
endparam
Microsoft.Xna.Framework.Vector2
-
linkWidth
number
-
linkHeight
number
-
numberOfLinks
number
-
linkDensity
number
-
attachRopeJoint
bool
Returns
-
FarseerPhysics.Common.Path
CreateChainShape(vertices, position, collisionCategory, collidesWith, findNewContacts)
CreateChainShape
Parameters
-
vertices
FarseerPhysics.Common.Vertices
-
position
Microsoft.Xna.Framework.Vector2
-
collisionCategory
FarseerPhysics.Dynamics.Category
-
collidesWith
FarseerPhysics.Dynamics.Category
-
findNewContacts
bool
Returns
-
FarseerPhysics.Dynamics.Body
CreateCircle(radius, density, position, bodyType, collisionCategory, collidesWith, findNewContacts)
CreateCircle
Parameters
-
radius
number
-
density
number
-
position
Microsoft.Xna.Framework.Vector2
-
bodyType
FarseerPhysics.BodyType
-
collisionCategory
FarseerPhysics.Dynamics.Category
-
collidesWith
FarseerPhysics.Dynamics.Category
-
findNewContacts
bool
Returns
-
FarseerPhysics.Dynamics.Body
CreateCompoundPolygon(list, density, position, rotation, bodyType, collisionCategory, collidesWith, findNewContacts)
CreateCompoundPolygon
Parameters
-
list
table
-
density
number
-
position
Microsoft.Xna.Framework.Vector2
-
rotation
number
-
bodyType
FarseerPhysics.BodyType
-
collisionCategory
FarseerPhysics.Dynamics.Category
-
collidesWith
FarseerPhysics.Dynamics.Category
-
findNewContacts
bool
Returns
-
FarseerPhysics.Dynamics.Body
CreateEdge(start, endparam, bodyType, collisionCategory, collidesWith, findNewContacts)
CreateEdge
Parameters
-
start
Microsoft.Xna.Framework.Vector2
-
endparam
Microsoft.Xna.Framework.Vector2
-
bodyType
FarseerPhysics.BodyType
-
collisionCategory
FarseerPhysics.Dynamics.Category
-
collidesWith
FarseerPhysics.Dynamics.Category
-
findNewContacts
bool
Returns
-
FarseerPhysics.Dynamics.Body
CreateEllipse(xRadius, yRadius, edges, density, position, rotation, bodyType, collisionCategory, collidesWith, findNewContacts)
CreateEllipse
Parameters
-
xRadius
number
-
yRadius
number
-
edges
number
-
density
number
-
position
Microsoft.Xna.Framework.Vector2
-
rotation
number
-
bodyType
FarseerPhysics.BodyType
-
collisionCategory
FarseerPhysics.Dynamics.Category
-
collidesWith
FarseerPhysics.Dynamics.Category
-
findNewContacts
bool
Returns
-
FarseerPhysics.Dynamics.Body
CreateGear(radius, numberOfTeeth, tipPercentage, toothHeight, density, position, rotation, bodyType, collisionCategory, collidesWith)
CreateGear
Parameters
-
radius
number
-
numberOfTeeth
number
-
tipPercentage
number
-
toothHeight
number
-
density
number
-
position
Microsoft.Xna.Framework.Vector2
-
rotation
number
-
bodyType
FarseerPhysics.BodyType
-
collisionCategory
FarseerPhysics.Dynamics.Category
-
collidesWith
FarseerPhysics.Dynamics.Category
Returns
-
FarseerPhysics.Dynamics.Body
CreateLineArc(radians, sides, radius, closed, position, rotation, bodyType, collisionCategory, collidesWith)
CreateLineArc
Parameters
-
radians
number
-
sides
number
-
radius
number
-
closed
bool
-
position
Microsoft.Xna.Framework.Vector2
-
rotation
number
-
bodyType
FarseerPhysics.BodyType
-
collisionCategory
FarseerPhysics.Dynamics.Category
-
collidesWith
FarseerPhysics.Dynamics.Category
Returns
-
FarseerPhysics.Dynamics.Body
CreateLoopShape(vertices, position, collisionCategory, collidesWith, findNewContacts)
CreateLoopShape
Parameters
-
vertices
FarseerPhysics.Common.Vertices
-
position
Microsoft.Xna.Framework.Vector2
-
collisionCategory
FarseerPhysics.Dynamics.Category
-
collidesWith
FarseerPhysics.Dynamics.Category
-
findNewContacts
bool
Returns
-
FarseerPhysics.Dynamics.Body
CreatePolygon(vertices, density, position, rotation, bodyType, collisionCategory, collidesWith, findNewContacts)
CreatePolygon
Parameters
-
vertices
FarseerPhysics.Common.Vertices
-
density
number
-
position
Microsoft.Xna.Framework.Vector2
-
rotation
number
-
bodyType
FarseerPhysics.BodyType
-
collisionCategory
FarseerPhysics.Dynamics.Category
-
collidesWith
FarseerPhysics.Dynamics.Category
-
findNewContacts
bool
Returns
-
FarseerPhysics.Dynamics.Body
CreateRectangle(width, height, density, position, rotation, bodyType, collisionCategory, collidesWith, findNewContacts)
CreateRectangle
Parameters
-
width
number
-
height
number
-
density
number
-
position
Microsoft.Xna.Framework.Vector2
-
rotation
number
-
bodyType
FarseerPhysics.BodyType
-
collisionCategory
FarseerPhysics.Dynamics.Category
-
collidesWith
FarseerPhysics.Dynamics.Category
-
findNewContacts
bool
Returns
-
FarseerPhysics.Dynamics.Body
CreateRoundedRectangle(width, height, xRadius, yRadius, segments, density, position, rotation, bodyType, collisionCategory, collidesWith)
CreateRoundedRectangle
Parameters
-
width
number
-
height
number
-
xRadius
number
-
yRadius
number
-
segments
number
-
density
number
-
position
Microsoft.Xna.Framework.Vector2
-
rotation
number
-
bodyType
FarseerPhysics.BodyType
-
collisionCategory
FarseerPhysics.Dynamics.Category
-
collidesWith
FarseerPhysics.Dynamics.Category
Returns
-
FarseerPhysics.Dynamics.Body
CreateSolidArc(density, radians, sides, radius, position, rotation, bodyType, collisionCategory, collidesWith)
CreateSolidArc
Parameters
-
density
number
-
radians
number
-
sides
number
-
radius
number
-
position
Microsoft.Xna.Framework.Vector2
-
rotation
number
-
bodyType
FarseerPhysics.BodyType
-
collisionCategory
FarseerPhysics.Dynamics.Category
-
collidesWith
FarseerPhysics.Dynamics.Category
Returns
-
FarseerPhysics.Dynamics.Body
Equals(obj)
Equals
Parameters
-
obj
Object
Returns
-
bool
GetHashCode()
GetHashCode
Returns
-
number
GetType()
GetType
Returns
-
Type
ProcessChanges()
ProcessChanges
QueryAABB(aabb)
QueryAABB
Parameters
-
aabb
FarseerPhysics.Collision.AABB&
Returns
QueryAABB(callback, aabb)
QueryAABB
Parameters
-
callback
function
-
aabb
FarseerPhysics.Collision.AABB&
RayCast(point1, point2)
RayCast
Parameters
-
point1
Microsoft.Xna.Framework.Vector2
-
point2
Microsoft.Xna.Framework.Vector2
Returns
RayCast(callback, point1, point2, collisionCategory)
RayCast
Parameters
-
callback
Func
-
point1
Microsoft.Xna.Framework.Vector2
-
point2
Microsoft.Xna.Framework.Vector2
-
collisionCategory
FarseerPhysics.Dynamics.Category
Remove(body)
Remove
Parameters
-
body
FarseerPhysics.Dynamics.Body
Remove(joint)
Remove
Parameters
-
joint
FarseerPhysics.Dynamics.Joints.Joint
Remove(controller)
Remove
Parameters
-
controller
FarseerPhysics.Controllers.Controller
RemoveAsync(joint)
RemoveAsync
Parameters
-
joint
FarseerPhysics.Dynamics.Joints.Joint
RemoveAsync(body)
RemoveAsync
Parameters
-
body
FarseerPhysics.Dynamics.Body
ShiftOrigin(newOrigin)
ShiftOrigin
Parameters
-
newOrigin
Microsoft.Xna.Framework.Vector2
Step(dt)
Step
Parameters
-
dt
number
Step(dt, iterations)
Step
Parameters
-
dt
number
-
iterations
FarseerPhysics.Dynamics.SolverIterations&
Step(dt)
Step
Parameters
-
dt
TimeSpan
Step(dt, iterations)
Step
Parameters
-
dt
TimeSpan
-
iterations
FarseerPhysics.Dynamics.SolverIterations&
TestPoint(point)
TestPoint
Parameters
-
point
Microsoft.Xna.Framework.Vector2
Returns
-
FarseerPhysics.Dynamics.Fixture
TestPointAll(point)
TestPointAll
Parameters
-
point
Microsoft.Xna.Framework.Vector2
Returns
ToString()
ToString
Returns
World()
World
World(gravity)
World
Parameters
-
gravity
Microsoft.Xna.Framework.Vector2
World(broadPhase)
World
Parameters
-
broadPhase
FarseerPhysics.Collision.IBroadPhase
Fields
AddRemoveTime
AddRemoveTime, field of type TimeSpan
-
AddRemoveTime
BodyAdded
BodyAdded, field of type FarseerPhysics.Dynamics.BodyDelegate
-
BodyAdded
BodyList
BodyList, field of type table
-
BodyList
BodyRemoved
BodyRemoved, field of type FarseerPhysics.Dynamics.BodyDelegate
-
BodyRemoved
ContactCount
ContactCount, field of type number
-
ContactCount
ContactList
ContactList, field of type FarseerPhysics.Dynamics.Contacts.ContactListHead
-
ContactList
ContactManager
ContactManager, field of type FarseerPhysics.Dynamics.ContactManager
-
ContactManager
ContactsUpdateTime
ContactsUpdateTime, field of type TimeSpan
-
ContactsUpdateTime
ContinuousPhysicsTime
ContinuousPhysicsTime, field of type TimeSpan
-
ContinuousPhysicsTime
ControllerAdded
ControllerAdded, field of type FarseerPhysics.Dynamics.ControllerDelegate
-
ControllerAdded
ControllerList
ControllerList, field of type table
-
ControllerList
ControllerRemoved
ControllerRemoved, field of type FarseerPhysics.Dynamics.ControllerDelegate
-
ControllerRemoved
ControllersUpdateTime
ControllersUpdateTime, field of type TimeSpan
-
ControllersUpdateTime
Enabled
Enabled, field of type bool
-
Enabled
FixtureAdded
FixtureAdded, field of type FarseerPhysics.Dynamics.FixtureDelegate
-
FixtureAdded
FixtureRemoved
FixtureRemoved, field of type FarseerPhysics.Dynamics.FixtureDelegate
-
FixtureRemoved
Fluid
Fluid, field of type FarseerPhysics.Fluids.FluidSystem2
-
Fluid
Gravity
Gravity, field of type Microsoft.Xna.Framework.Vector2
-
Gravity
IsLocked
IsLocked, field of type bool
-
IsLocked
Island
Island, field of type FarseerPhysics.Dynamics.Island
-
Island
JointAdded
JointAdded, field of type FarseerPhysics.Dynamics.JointDelegate
-
JointAdded
JointList
JointList, field of type table
-
JointList
JointRemoved
JointRemoved, field of type FarseerPhysics.Dynamics.JointDelegate
-
JointRemoved
NewContactsTime
NewContactsTime, field of type TimeSpan
-
NewContactsTime
ProxyCount
ProxyCount, field of type number
-
ProxyCount
SolveUpdateTime
SolveUpdateTime, field of type TimeSpan
-
SolveUpdateTime
Tag
Tag, field of type Object
-
Tag
UpdateTime
UpdateTime, field of type TimeSpan
-
UpdateTime