FarseerPhysics.Collision.Shapes.Shape.Clone C# (CSharp) Method

Clone() public abstract method

Clone the concrete shape
public abstract Clone ( ) : Shape
return Shape
        public abstract Shape Clone();

Usage Example

示例#1
0
        public Fixture(Body body, Shape shape, object userData)
        {
            if (Settings.UseFPECollisionCategories)
                _collisionCategories = Category.All;
            else
                _collisionCategories = Category.Cat1;

            _collidesWith = Category.All;
            _collisionGroup = 0;

            //Fixture defaults
            Friction = 0.2f;
            Restitution = 0;

            IsSensor = false;

            Body = body;
            UserData = userData;

            if (Settings.ConserveMemory)
                Shape = shape;
            else
                Shape = shape.Clone();

            RegisterFixture();
        }
All Usage Examples Of FarseerPhysics.Collision.Shapes.Shape::Clone