AttachLineArc() public static method

public static AttachLineArc ( float radians, int sides, float radius, bool closed, Body body ) : Fixture
radians float
sides int
radius float
closed bool
body FarseerPhysics.Dynamics.Body
return FarseerPhysics.Dynamics.Fixture
コード例 #1
0
        public static Body CreateLineArc(World world, float radians, int sides, float radius, Vector2 position, float angle, bool closed)
        {
            Body body = CreateBody(world);

            FixtureFactory.AttachLineArc(radians, sides, radius, position, angle, closed, body);
            return(body);
        }
コード例 #2
0
        public static Body CreateLineArc(World world, float radians, int sides, float radius, bool closed = false, Vector2 position = new Vector2(), float rotation = 0, BodyType bodyType = BodyType.Static)
        {
            var body = CreateBody(world, position, rotation, bodyType);

            FixtureFactory.AttachLineArc(radians, sides, radius, closed, body);
            return(body);
        }