C# Class Nez.Farseer.BodyExt

Afficher le fichier Open project: prime31/Nez

Méthodes publiques

Méthode 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 méthode

public static attachCapsule ( this body, float height, float endRadius, float density ) : void
body this
height float
endRadius float
density float
Résultat void

attachChainShape() public static méthode

public static attachChainShape ( this body, List vertices ) : Fixture
body this
vertices List
Résultat FarseerPhysics.Dynamics.Fixture

attachCircle() public static méthode

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
Résultat FarseerPhysics.Dynamics.Fixture

attachCompoundPolygon() public static méthode

public static attachCompoundPolygon ( this body, List list, float density ) : List
body this
list List
density float
Résultat List

attachEdge() public static méthode

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

attachEllipse() public static méthode

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

attachGear() public static méthode

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
Résultat List

attachLineArc() public static méthode

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

attachLoopShape() public static méthode

public static attachLoopShape ( this body, List vertices ) : Fixture
body this
vertices List
Résultat FarseerPhysics.Dynamics.Fixture

attachPolygon() public static méthode

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

attachRectangle() public static méthode

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
Résultat FarseerPhysics.Dynamics.Fixture

attachSolidArc() public static méthode

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

createAngleJoint() public static méthode

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

createDistanceJoint() public static méthode

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

createDistanceJoint() public static méthode

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
Résultat FarseerPhysics.Dynamics.Joints.DistanceJoint

createFixedMouseJoint() public static méthode

public static createFixedMouseJoint ( this body, Vector2 worldAnchor ) : FixedMouseJoint
body this
worldAnchor Microsoft.Xna.Framework.Vector2
Résultat FarseerPhysics.Dynamics.Joints.FixedMouseJoint

createFrictionJoint() public static méthode

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

createFrictionJoint() public static méthode

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
Résultat FarseerPhysics.Dynamics.Joints.FrictionJoint

createGearJoint() public static méthode

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
Résultat FarseerPhysics.Dynamics.Joints.GearJoint

createMotorJoint() public static méthode

public static createMotorJoint ( this body, Body bodyB, bool useWorldCoordinates = false ) : MotorJoint
body this
bodyB FarseerPhysics.Dynamics.Body
useWorldCoordinates bool
Résultat FarseerPhysics.Dynamics.Joints.MotorJoint

createPrismaticJoint() public static méthode

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
Résultat FarseerPhysics.Dynamics.Joints.PrismaticJoint

createPulleyJoint() public static méthode

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
Résultat FarseerPhysics.Dynamics.Joints.PulleyJoint

createRevoluteJoint() public static méthode

public static createRevoluteJoint ( this body, Body bodyB, Vector2 anchor ) : RevoluteJoint
body this
bodyB FarseerPhysics.Dynamics.Body
anchor Microsoft.Xna.Framework.Vector2
Résultat FarseerPhysics.Dynamics.Joints.RevoluteJoint

createRevoluteJoint() public static méthode

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
Résultat FarseerPhysics.Dynamics.Joints.RevoluteJoint

createRopeJoint() public static méthode

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
Résultat FarseerPhysics.Dynamics.Joints.RopeJoint

createWeldJoint() public static méthode

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
Résultat FarseerPhysics.Dynamics.Joints.WeldJoint

createWheelJoint() public static méthode

public static createWheelJoint ( this body, Body bodyB, Vector2 axis ) : WheelJoint
body this
bodyB FarseerPhysics.Dynamics.Body
axis Microsoft.Xna.Framework.Vector2
Résultat FarseerPhysics.Dynamics.Joints.WheelJoint

createWheelJoint() public static méthode

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
Résultat FarseerPhysics.Dynamics.Joints.WheelJoint