Motor vehicles? Castle doctrine is about overriding the usual limitations (around what's reasonable use of force) on the right to self defence if you're in your home. Cars don't come into it.
Some places also extend the same protections that castle law provides to your home to your car, but that's separate from castle doctrine itself.