good thinking that you didn't run immediately because the bear would charge you for sure. It will assume you are prey once you start running. if this black bear continued to follow you to the car, then this bear is called a problem bear. You would have to get to the car fast and notify park ranger of bear location. The bear has to be shot. It lost the fear of humans.