A passenger has died after a car slammed into a tree on Indian Ocean Drive in Breton Bay, north of Perth.