C# Class FarseerPhysics.Factories.JointFactory

An easy to use factory for using joints.
Show file Open project: prime31/Nez

Public Methods

Method Description
CreateAngleJoint ( World world, Body bodyA, Body bodyB ) : AngleJoint
CreateDistanceJoint ( World world, Body bodyA, Body bodyB ) : DistanceJoint
CreateDistanceJoint ( World world, Body bodyA, Body bodyB, Vector2 anchorA, Vector2 anchorB, bool useWorldCoordinates = false ) : DistanceJoint
CreateFixedMouseJoint ( World world, Body body, Vector2 worldAnchor ) : FixedMouseJoint
CreateFrictionJoint ( World world, Body bodyA, Body bodyB ) : FrictionJoint
CreateFrictionJoint ( World world, Body bodyA, Body bodyB, Vector2 anchor, bool useWorldCoordinates = false ) : FrictionJoint
CreateGearJoint ( World world, Body bodyA, Body bodyB, Joint jointA, Joint jointB, float ratio ) : GearJoint
CreateMotorJoint ( World world, Body bodyA, Body bodyB, bool useWorldCoordinates = false ) : MotorJoint
CreatePrismaticJoint ( World world, Body bodyA, Body bodyB, Vector2 anchor, Vector2 axis, bool useWorldCoordinates = false ) : PrismaticJoint
CreatePulleyJoint ( World world, Body bodyA, Body bodyB, Vector2 anchorA, Vector2 anchorB, Vector2 worldAnchorA, Vector2 worldAnchorB, float ratio, bool useWorldCoordinates = false ) : PulleyJoint
CreateRevoluteJoint ( World world, Body bodyA, Body bodyB, Vector2 anchor ) : RevoluteJoint
CreateRevoluteJoint ( World world, Body bodyA, Body bodyB, Vector2 anchorA, Vector2 anchorB, bool useWorldCoordinates = false ) : RevoluteJoint
CreateRopeJoint ( World world, Body bodyA, Body bodyB, Vector2 anchorA, Vector2 anchorB, bool useWorldCoordinates = false ) : RopeJoint
CreateWeldJoint ( World world, Body bodyA, Body bodyB, Vector2 anchorA, Vector2 anchorB, bool useWorldCoordinates = false ) : WeldJoint
CreateWheelJoint ( World world, Body bodyA, Body bodyB, Vector2 axis ) : WheelJoint
CreateWheelJoint ( World world, Body bodyA, Body bodyB, Vector2 anchor, Vector2 axis, bool useWorldCoordinates = false ) : WheelJoint

Method Details

CreateAngleJoint() public static method

public static CreateAngleJoint ( World world, Body bodyA, Body bodyB ) : AngleJoint
world FarseerPhysics.Dynamics.World
bodyA FarseerPhysics.Dynamics.Body
bodyB FarseerPhysics.Dynamics.Body
return FarseerPhysics.Dynamics.Joints.AngleJoint

CreateDistanceJoint() public static method

public static CreateDistanceJoint ( World world, Body bodyA, Body bodyB ) : DistanceJoint
world FarseerPhysics.Dynamics.World
bodyA FarseerPhysics.Dynamics.Body
bodyB FarseerPhysics.Dynamics.Body
return FarseerPhysics.Dynamics.Joints.DistanceJoint

CreateDistanceJoint() public static method

public static CreateDistanceJoint ( World world, Body bodyA, Body bodyB, Vector2 anchorA, Vector2 anchorB, bool useWorldCoordinates = false ) : DistanceJoint
world FarseerPhysics.Dynamics.World
bodyA FarseerPhysics.Dynamics.Body
bodyB FarseerPhysics.Dynamics.Body
anchorA Microsoft.Xna.Framework.Vector2
anchorB Microsoft.Xna.Framework.Vector2
useWorldCoordinates bool
return FarseerPhysics.Dynamics.Joints.DistanceJoint

CreateFixedMouseJoint() public static method

public static CreateFixedMouseJoint ( World world, Body body, Vector2 worldAnchor ) : FixedMouseJoint
world FarseerPhysics.Dynamics.World
body FarseerPhysics.Dynamics.Body
worldAnchor Microsoft.Xna.Framework.Vector2
return FarseerPhysics.Dynamics.Joints.FixedMouseJoint

CreateFrictionJoint() public static method

public static CreateFrictionJoint ( World world, Body bodyA, Body bodyB ) : FrictionJoint
world FarseerPhysics.Dynamics.World
bodyA FarseerPhysics.Dynamics.Body
bodyB FarseerPhysics.Dynamics.Body
return FarseerPhysics.Dynamics.Joints.FrictionJoint

CreateFrictionJoint() public static method

public static CreateFrictionJoint ( World world, Body bodyA, Body bodyB, Vector2 anchor, bool useWorldCoordinates = false ) : FrictionJoint
world FarseerPhysics.Dynamics.World
bodyA FarseerPhysics.Dynamics.Body
bodyB FarseerPhysics.Dynamics.Body
anchor Microsoft.Xna.Framework.Vector2
useWorldCoordinates bool
return FarseerPhysics.Dynamics.Joints.FrictionJoint

CreateGearJoint() public static method

public static CreateGearJoint ( World world, Body bodyA, Body bodyB, Joint jointA, Joint jointB, float ratio ) : GearJoint
world FarseerPhysics.Dynamics.World
bodyA FarseerPhysics.Dynamics.Body
bodyB FarseerPhysics.Dynamics.Body
jointA FarseerPhysics.Dynamics.Joints.Joint
jointB FarseerPhysics.Dynamics.Joints.Joint
ratio float
return FarseerPhysics.Dynamics.Joints.GearJoint

CreateMotorJoint() public static method

public static CreateMotorJoint ( World world, Body bodyA, Body bodyB, bool useWorldCoordinates = false ) : MotorJoint
world FarseerPhysics.Dynamics.World
bodyA FarseerPhysics.Dynamics.Body
bodyB FarseerPhysics.Dynamics.Body
useWorldCoordinates bool
return FarseerPhysics.Dynamics.Joints.MotorJoint

CreatePrismaticJoint() public static method

public static CreatePrismaticJoint ( World world, Body bodyA, Body bodyB, Vector2 anchor, Vector2 axis, bool useWorldCoordinates = false ) : PrismaticJoint
world FarseerPhysics.Dynamics.World
bodyA FarseerPhysics.Dynamics.Body
bodyB FarseerPhysics.Dynamics.Body
anchor Microsoft.Xna.Framework.Vector2
axis Microsoft.Xna.Framework.Vector2
useWorldCoordinates bool
return FarseerPhysics.Dynamics.Joints.PrismaticJoint

CreatePulleyJoint() public static method

public static CreatePulleyJoint ( World world, Body bodyA, Body bodyB, Vector2 anchorA, Vector2 anchorB, Vector2 worldAnchorA, Vector2 worldAnchorB, float ratio, bool useWorldCoordinates = false ) : PulleyJoint
world FarseerPhysics.Dynamics.World
bodyA FarseerPhysics.Dynamics.Body
bodyB FarseerPhysics.Dynamics.Body
anchorA Microsoft.Xna.Framework.Vector2
anchorB Microsoft.Xna.Framework.Vector2
worldAnchorA Microsoft.Xna.Framework.Vector2
worldAnchorB Microsoft.Xna.Framework.Vector2
ratio float
useWorldCoordinates bool
return FarseerPhysics.Dynamics.Joints.PulleyJoint

CreateRevoluteJoint() public static method

public static CreateRevoluteJoint ( World world, Body bodyA, Body bodyB, Vector2 anchor ) : RevoluteJoint
world FarseerPhysics.Dynamics.World
bodyA FarseerPhysics.Dynamics.Body
bodyB FarseerPhysics.Dynamics.Body
anchor Microsoft.Xna.Framework.Vector2
return FarseerPhysics.Dynamics.Joints.RevoluteJoint

CreateRevoluteJoint() public static method

public static CreateRevoluteJoint ( World world, Body bodyA, Body bodyB, Vector2 anchorA, Vector2 anchorB, bool useWorldCoordinates = false ) : RevoluteJoint
world FarseerPhysics.Dynamics.World
bodyA FarseerPhysics.Dynamics.Body
bodyB FarseerPhysics.Dynamics.Body
anchorA Microsoft.Xna.Framework.Vector2
anchorB Microsoft.Xna.Framework.Vector2
useWorldCoordinates bool
return FarseerPhysics.Dynamics.Joints.RevoluteJoint

CreateRopeJoint() public static method

public static CreateRopeJoint ( World world, Body bodyA, Body bodyB, Vector2 anchorA, Vector2 anchorB, bool useWorldCoordinates = false ) : RopeJoint
world FarseerPhysics.Dynamics.World
bodyA FarseerPhysics.Dynamics.Body
bodyB FarseerPhysics.Dynamics.Body
anchorA Microsoft.Xna.Framework.Vector2
anchorB Microsoft.Xna.Framework.Vector2
useWorldCoordinates bool
return FarseerPhysics.Dynamics.Joints.RopeJoint

CreateWeldJoint() public static method

public static CreateWeldJoint ( World world, Body bodyA, Body bodyB, Vector2 anchorA, Vector2 anchorB, bool useWorldCoordinates = false ) : WeldJoint
world FarseerPhysics.Dynamics.World
bodyA FarseerPhysics.Dynamics.Body
bodyB FarseerPhysics.Dynamics.Body
anchorA Microsoft.Xna.Framework.Vector2
anchorB Microsoft.Xna.Framework.Vector2
useWorldCoordinates bool
return FarseerPhysics.Dynamics.Joints.WeldJoint

CreateWheelJoint() public static method

public static CreateWheelJoint ( World world, Body bodyA, Body bodyB, Vector2 axis ) : WheelJoint
world FarseerPhysics.Dynamics.World
bodyA FarseerPhysics.Dynamics.Body
bodyB FarseerPhysics.Dynamics.Body
axis Microsoft.Xna.Framework.Vector2
return FarseerPhysics.Dynamics.Joints.WheelJoint

CreateWheelJoint() public static method

public static CreateWheelJoint ( World world, Body bodyA, Body bodyB, Vector2 anchor, Vector2 axis, bool useWorldCoordinates = false ) : WheelJoint
world FarseerPhysics.Dynamics.World
bodyA FarseerPhysics.Dynamics.Body
bodyB FarseerPhysics.Dynamics.Body
anchor Microsoft.Xna.Framework.Vector2
axis Microsoft.Xna.Framework.Vector2
useWorldCoordinates bool
return FarseerPhysics.Dynamics.Joints.WheelJoint