C# Класс Nez.Farseer.BodyExt

Показать файл Открыть проект

Открытые методы

Метод Описание
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

Описание методов

attachCapsule() публичный статический Метод

public static attachCapsule ( this body, float height, float endRadius, float density ) : void
body this
height float
endRadius float
density float
Результат void

attachChainShape() публичный статический Метод

public static attachChainShape ( this body, List vertices ) : Fixture
body this
vertices List
Результат FarseerPhysics.Dynamics.Fixture

attachCircle() публичный статический Метод

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
Результат FarseerPhysics.Dynamics.Fixture

attachCompoundPolygon() публичный статический Метод

public static attachCompoundPolygon ( this body, List list, float density ) : List
body this
list List
density float
Результат List

attachEdge() публичный статический Метод

public static attachEdge ( this body, Vector2 start, Vector2 end ) : Fixture
body this
start Microsoft.Xna.Framework.Vector2
end Microsoft.Xna.Framework.Vector2
Результат FarseerPhysics.Dynamics.Fixture

attachEllipse() публичный статический Метод

public static attachEllipse ( this body, float xRadius, float yRadius, int edges, float density ) : Fixture
body this
xRadius float
yRadius float
edges int
density float
Результат FarseerPhysics.Dynamics.Fixture

attachGear() публичный статический Метод

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
Результат List

attachLineArc() публичный статический Метод

public static attachLineArc ( this body, float radians, int sides, float radius, bool closed ) : Fixture
body this
radians float
sides int
radius float
closed bool
Результат FarseerPhysics.Dynamics.Fixture

attachLoopShape() публичный статический Метод

public static attachLoopShape ( this body, List vertices ) : Fixture
body this
vertices List
Результат FarseerPhysics.Dynamics.Fixture

attachPolygon() публичный статический Метод

public static attachPolygon ( this body, List vertices, float density ) : Fixture
body this
vertices List
density float
Результат FarseerPhysics.Dynamics.Fixture

attachRectangle() публичный статический Метод

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
Результат FarseerPhysics.Dynamics.Fixture

attachSolidArc() публичный статический Метод

public static attachSolidArc ( this body, float density, float radians, int sides, float radius ) : List
body this
density float
radians float
sides int
radius float
Результат List

createAngleJoint() публичный статический Метод

public static createAngleJoint ( this body, Body bodyB ) : AngleJoint
body this
bodyB FarseerPhysics.Dynamics.Body
Результат FarseerPhysics.Dynamics.Joints.AngleJoint

createDistanceJoint() публичный статический Метод

public static createDistanceJoint ( this body, Body bodyB ) : DistanceJoint
body this
bodyB FarseerPhysics.Dynamics.Body
Результат FarseerPhysics.Dynamics.Joints.DistanceJoint

createDistanceJoint() публичный статический Метод

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
Результат FarseerPhysics.Dynamics.Joints.DistanceJoint

createFixedMouseJoint() публичный статический Метод

public static createFixedMouseJoint ( this body, Vector2 worldAnchor ) : FixedMouseJoint
body this
worldAnchor Microsoft.Xna.Framework.Vector2
Результат FarseerPhysics.Dynamics.Joints.FixedMouseJoint

createFrictionJoint() публичный статический Метод

public static createFrictionJoint ( this body, Body bodyB ) : FrictionJoint
body this
bodyB FarseerPhysics.Dynamics.Body
Результат FarseerPhysics.Dynamics.Joints.FrictionJoint

createFrictionJoint() публичный статический Метод

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
Результат FarseerPhysics.Dynamics.Joints.FrictionJoint

createGearJoint() публичный статический Метод

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
Результат FarseerPhysics.Dynamics.Joints.GearJoint

createMotorJoint() публичный статический Метод

public static createMotorJoint ( this body, Body bodyB, bool useWorldCoordinates = false ) : MotorJoint
body this
bodyB FarseerPhysics.Dynamics.Body
useWorldCoordinates bool
Результат FarseerPhysics.Dynamics.Joints.MotorJoint

createPrismaticJoint() публичный статический Метод

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
Результат FarseerPhysics.Dynamics.Joints.PrismaticJoint

createPulleyJoint() публичный статический Метод

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
Результат FarseerPhysics.Dynamics.Joints.PulleyJoint

createRevoluteJoint() публичный статический Метод

public static createRevoluteJoint ( this body, Body bodyB, Vector2 anchor ) : RevoluteJoint
body this
bodyB FarseerPhysics.Dynamics.Body
anchor Microsoft.Xna.Framework.Vector2
Результат FarseerPhysics.Dynamics.Joints.RevoluteJoint

createRevoluteJoint() публичный статический Метод

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
Результат FarseerPhysics.Dynamics.Joints.RevoluteJoint

createRopeJoint() публичный статический Метод

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
Результат FarseerPhysics.Dynamics.Joints.RopeJoint

createWeldJoint() публичный статический Метод

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
Результат FarseerPhysics.Dynamics.Joints.WeldJoint

createWheelJoint() публичный статический Метод

public static createWheelJoint ( this body, Body bodyB, Vector2 axis ) : WheelJoint
body this
bodyB FarseerPhysics.Dynamics.Body
axis Microsoft.Xna.Framework.Vector2
Результат FarseerPhysics.Dynamics.Joints.WheelJoint

createWheelJoint() публичный статический Метод

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
Результат FarseerPhysics.Dynamics.Joints.WheelJoint