A woman claims a car crash changed her personality — transforming her from a star student to a lusty dominatrix — and now she’s getting $1.5 million in damages for it.

Alissa Afonina, 23, of Burnaby, British Columbia, said in court papers that she was a bookish teen at the top of her high school class until a pickup truck she was riding in ran off the road and she bumped her head.

The resulting brain damage caused a loss of “impulse control,” turning her into a sex-crazed wild child — and leading her to sex work, say the court documents, filed in British Colombia Supreme Court.

“I find that it is the brain injury that has led to her post-accident lack of ability to cope in the normal way, and it is the brain injury that has prohibited her from generating sufficient economic resources to support herself,” Justice Joel Grove wrote on Jan. 7.

“Alissa’s work as a dominatrix supports the finding.”

After the August 2008 crash, the then-17-year-old aspiring filmmaker started making sexual comments at school, dropped out of her senior year and couldn’t hold down a job, court documents say.

By 2013, she was working as a dominatrix named “Sasha Mizaree” and posting racy photos online, court papers say.

Grove ruled the crash kept her from building a solid career and faulted her mom’s ex-boyfriend, Peter Jansson, who was at the wheel of the Toyota Tacoma when in ran into a ditch.

Jansson was driving too fast with bald tires, Grove wrote.

Afonina’s former teacher also testified to her radical change.

“Instructions had to be repeated to her. Things had to be read over and over. She became socially isolated and began to have outbursts in class. She made sexual comments during these outbursts that were inappropriate for the class setting,” teacher Phil Byrne said.

Grove awarded Afonina $825,000 for “future capacity loss,” $376,000 for future care, $300,000 for pain and suffering and $23,000 for special damages.

Jansson’s attorney, J. Derek James, declined to comment.

Afonina’s attorney, J. Scott Stanley, said she is no longer working as a dominatrix.

“We want to turn the attention away from her so she can move on from her life,” he said.