Newly released court documents are revealing new details about the alleged motive and actions of the man accused in the mass shooting at a Planned Parenthood clinic in Colorado Springs that left three people dead -- including a police officer -- and wounded nine others.

Robert Lewis Dear, 57, previously admitted to the shooting in court, but documents related to the Nov. 27 attack have previously been sealed.

The judge in the case unsealed an arrest affidavit and several search warrants Monday. They include detailed admissions from Dear of his actions on the day of the shooting and the reasons behind them.

The documents say Dear told police he went to the clinic because he was upset with Planned Parenthood for performing abortions and the “selling of baby parts.”

He had to stop several times to ask for directions and eventually obtained the clinic’s address by calling it directly.

A shooting survivor told police she was in the parking lot of the clinic when an older man approached her. She said hold her she shouldn’t have come there that day, and he then shot her multiple times, hitting her right upper arm.

According to the arrest affidavit, Dear told detectives he proceeded to go inside the building with four rifles.

While inside he saw a police officer approaching a window with a gun, but because of the tint on the window, the officer could not see him. He said he knew it was an officer because of the uniform the man was wearing. Dear said he shot the officer through the window. The officer was believed to be Garrett Swasey, according to the affidavit, who died from his wounds.

The documents say video surveillance from within the building shows Dear shooting multiple victims.

Dear told investigators he was wearing a homemade ballistic vest made of silver coins and duct tape during the shooting. He described placing propane tanks outside the building and shooting them in hopes of making them explode, though they did not.

The documents also reveal that during an interview after the attack, Dear said “his dream was that when he died and went to heaven he would be met by all of the aborted fetuses at the gates of heaven and they would thank him for what he did because his actions saved the lives of other unborn fetuses.”

Dear went on to say he was happy because the shooting ensured no more abortions would be conducted at the clinic. Two-and-a-half months after the shooting, the clinic re-opened.

Upon searching Dear’s Toyota Tacoma pickup truck after the shooting, officers found five guns, including two rifles, a shotgun and two pistols. They also discovered ammunition, knives, a hatchet, arrow tips, bear mace, and a Bible.

Dear is facing more than 179 counts of murder, attempted murder assault and other charges in the attack.

Officer Swasey, 44, worked for the University of Colorado-Colorado Springs Police Department. He rushed to the scene to help when he heard reports of the shooting. Swasey left behind a wife and two children.

Jennifer Markovsky, 36, also died in the shooting and also had two young children. Originally from Hawaii, Markovsky was at the Planned Parenthood that day to support a friend.

Ke’Arre Stewart, 29, was also at the clinic to support someone else and left behind two children. He was an Iraq war veteran who had recently left the military.