Exemple #1
0
        Joint MirrorSingle()
        {
            Position mp = BridgeSim.Position.Center;

            switch (Position)
            {
            case Position.Center:
                mp = BridgeSim.Position.Center;
                break;

            case Position.Left:
                mp = BridgeSim.Position.Right;
                break;

            case Position.Right:
                mp = BridgeSim.Position.Left;
                break;
            }
            return(new Joint(mp, Name, Length, Size, new Vector3(-ParentOffset.X, ParentOffset.Y, ParentOffset.Z), Yaw.Mirror(), Pitch.Clone(), Roll.Mirror())
            {
                Color = this.Color,
                Visible = this.Visible
            });
        }