C# Class Nez.Farseer.BodyExt

Datei anzeigen Open project: prime31/Nez

Public Methods

Method Description
attachCapsule ( this body, float height, float endRadius, float density ) : void
attachChainShape ( this body, List vertices ) : Fixture
attachCircle ( this body, float radius, float density, Vector2 offset = default(Vector2) ) : Fixture
attachCompoundPolygon ( this body, List list, float density ) : List
attachEdge ( this body, Vector2 start, Vector2 end ) : Fixture
attachEllipse ( this body, float xRadius, float yRadius, int edges, float density ) : Fixture
attachGear ( this body, float radius, int numberOfTeeth, float tipPercentage, float toothHeight, float density ) : List
attachLineArc ( this body, float radians, int sides, float radius, bool closed ) : Fixture
attachLoopShape ( this body, List vertices ) : Fixture
attachPolygon ( this body, List vertices, float density ) : Fixture
attachRectangle ( this body, float width, float height, float density, Vector2 offset = default(Vector2) ) : Fixture
attachSolidArc ( this body, float density, float radians, int sides, float radius ) : List
createAngleJoint ( this body, Body bodyB ) : AngleJoint
createDistanceJoint ( this body, Body bodyB ) : DistanceJoint
createDistanceJoint ( this body, Body bodyB, Vector2 anchorA, Vector2 anchorB, bool useWorldCoordinates = false ) : DistanceJoint
createFixedMouseJoint ( this body, Vector2 worldAnchor ) : FixedMouseJoint
createFrictionJoint ( this body, Body bodyB ) : FrictionJoint
createFrictionJoint ( this body, Body bodyB, Vector2 anchor, bool useWorldCoordinates = false ) : FrictionJoint
createGearJoint ( this body, Body bodyB, Joint jointA, Joint jointB, float ratio ) : GearJoint
createMotorJoint ( this body, Body bodyB, bool useWorldCoordinates = false ) : MotorJoint
createPrismaticJoint ( this body, Body bodyB, Vector2 anchor, Vector2 axis, bool useWorldCoordinates = false ) : PrismaticJoint
createPulleyJoint ( this body, Body bodyB, Vector2 anchorA, Vector2 anchorB, Vector2 worldAnchorA, Vector2 worldAnchorB, float ratio, bool useWorldCoordinates = false ) : PulleyJoint
createRevoluteJoint ( this body, Body bodyB, Vector2 anchor ) : RevoluteJoint
createRevoluteJoint ( this body, Body bodyB, Vector2 anchorA, Vector2 anchorB, bool useWorldCoordinates = false ) : RevoluteJoint
createRopeJoint ( this body, Body bodyB, Vector2 anchorA, Vector2 anchorB, bool useWorldCoordinates = false ) : RopeJoint
createWeldJoint ( this body, Body bodyB, Vector2 anchorA, Vector2 anchorB, bool useWorldCoordinates = false ) : WeldJoint
createWheelJoint ( this body, Body bodyB, Vector2 axis ) : WheelJoint
createWheelJoint ( this body, Body bodyB, Vector2 anchor, Vector2 axis, bool useWorldCoordinates = false ) : WheelJoint

Method Details

attachCapsule() public static method

public static attachCapsule ( this body, float height, float endRadius, float density ) : void
body this
height float
endRadius float
density float
return void

attachChainShape() public static method

public static attachChainShape ( this body, List vertices ) : Fixture
body this
vertices List
return FarseerPhysics.Dynamics.Fixture

attachCircle() public static method

public static attachCircle ( this body, float radius, float density, Vector2 offset = default(Vector2) ) : Fixture
body this
radius float
density float
offset Microsoft.Xna.Framework.Vector2
return FarseerPhysics.Dynamics.Fixture

attachCompoundPolygon() public static method

public static attachCompoundPolygon ( this body, List list, float density ) : List
body this
list List
density float
return List

attachEdge() public static method

public static attachEdge ( this body, Vector2 start, Vector2 end ) : Fixture
body this
start Microsoft.Xna.Framework.Vector2
end Microsoft.Xna.Framework.Vector2
return FarseerPhysics.Dynamics.Fixture

attachEllipse() public static method

public static attachEllipse ( this body, float xRadius, float yRadius, int edges, float density ) : Fixture
body this
xRadius float
yRadius float
edges int
density float
return FarseerPhysics.Dynamics.Fixture

attachGear() public static method

public static attachGear ( this body, float radius, int numberOfTeeth, float tipPercentage, float toothHeight, float density ) : List
body this
radius float
numberOfTeeth int
tipPercentage float
toothHeight float
density float
return List

attachLineArc() public static method

public static attachLineArc ( this body, float radians, int sides, float radius, bool closed ) : Fixture
body this
radians float
sides int
radius float
closed bool
return FarseerPhysics.Dynamics.Fixture

attachLoopShape() public static method

public static attachLoopShape ( this body, List vertices ) : Fixture
body this
vertices List
return FarseerPhysics.Dynamics.Fixture

attachPolygon() public static method

public static attachPolygon ( this body, List vertices, float density ) : Fixture
body this
vertices List
density float
return FarseerPhysics.Dynamics.Fixture

attachRectangle() public static method

public static attachRectangle ( this body, float width, float height, float density, Vector2 offset = default(Vector2) ) : Fixture
body this
width float
height float
density float
offset Microsoft.Xna.Framework.Vector2
return FarseerPhysics.Dynamics.Fixture

attachSolidArc() public static method

public static attachSolidArc ( this body, float density, float radians, int sides, float radius ) : List
body this
density float
radians float
sides int
radius float
return List

createAngleJoint() public static method

public static createAngleJoint ( this body, Body bodyB ) : AngleJoint
body this
bodyB FarseerPhysics.Dynamics.Body
return FarseerPhysics.Dynamics.Joints.AngleJoint

createDistanceJoint() public static method

public static createDistanceJoint ( this body, Body bodyB ) : DistanceJoint
body this
bodyB FarseerPhysics.Dynamics.Body
return FarseerPhysics.Dynamics.Joints.DistanceJoint

createDistanceJoint() public static method

public static createDistanceJoint ( this body, Body bodyB, Vector2 anchorA, Vector2 anchorB, bool useWorldCoordinates = false ) : DistanceJoint
body this
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 ( this body, Vector2 worldAnchor ) : FixedMouseJoint
body this
worldAnchor Microsoft.Xna.Framework.Vector2
return FarseerPhysics.Dynamics.Joints.FixedMouseJoint

createFrictionJoint() public static method

public static createFrictionJoint ( this body, Body bodyB ) : FrictionJoint
body this
bodyB FarseerPhysics.Dynamics.Body
return FarseerPhysics.Dynamics.Joints.FrictionJoint

createFrictionJoint() public static method

public static createFrictionJoint ( this body, Body bodyB, Vector2 anchor, bool useWorldCoordinates = false ) : FrictionJoint
body this
bodyB FarseerPhysics.Dynamics.Body
anchor Microsoft.Xna.Framework.Vector2
useWorldCoordinates bool
return FarseerPhysics.Dynamics.Joints.FrictionJoint

createGearJoint() public static method

public static createGearJoint ( this body, Body bodyB, Joint jointA, Joint jointB, float ratio ) : GearJoint
body this
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 ( this body, Body bodyB, bool useWorldCoordinates = false ) : MotorJoint
body this
bodyB FarseerPhysics.Dynamics.Body
useWorldCoordinates bool
return FarseerPhysics.Dynamics.Joints.MotorJoint

createPrismaticJoint() public static method

public static createPrismaticJoint ( this body, Body bodyB, Vector2 anchor, Vector2 axis, bool useWorldCoordinates = false ) : PrismaticJoint
body this
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 ( this body, Body bodyB, Vector2 anchorA, Vector2 anchorB, Vector2 worldAnchorA, Vector2 worldAnchorB, float ratio, bool useWorldCoordinates = false ) : PulleyJoint
body this
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 ( this body, Body bodyB, Vector2 anchor ) : RevoluteJoint
body this
bodyB FarseerPhysics.Dynamics.Body
anchor Microsoft.Xna.Framework.Vector2
return FarseerPhysics.Dynamics.Joints.RevoluteJoint

createRevoluteJoint() public static method

public static createRevoluteJoint ( this body, Body bodyB, Vector2 anchorA, Vector2 anchorB, bool useWorldCoordinates = false ) : RevoluteJoint
body this
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 ( this body, Body bodyB, Vector2 anchorA, Vector2 anchorB, bool useWorldCoordinates = false ) : RopeJoint
body this
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 ( this body, Body bodyB, Vector2 anchorA, Vector2 anchorB, bool useWorldCoordinates = false ) : WeldJoint
body this
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 ( this body, Body bodyB, Vector2 axis ) : WheelJoint
body this
bodyB FarseerPhysics.Dynamics.Body
axis Microsoft.Xna.Framework.Vector2
return FarseerPhysics.Dynamics.Joints.WheelJoint

createWheelJoint() public static method

public static createWheelJoint ( this body, Body bodyB, Vector2 anchor, Vector2 axis, bool useWorldCoordinates = false ) : WheelJoint
body this
bodyB FarseerPhysics.Dynamics.Body
anchor Microsoft.Xna.Framework.Vector2
axis Microsoft.Xna.Framework.Vector2
useWorldCoordinates bool
return FarseerPhysics.Dynamics.Joints.WheelJoint