exiting a car at the same spot every time??

Ok, so I’m having a small issue with my car that apparently no one else has run into. If I get out of my car while it’s facing in its original direction, I exit riiiight beside the driver’s side door. Unfortunately, however, if I turn the car around, I exit right near the back right-hand side of the car. If I face my car to the right of it’s original position, I exit by the back of the car. Get the idea? In the code that I’m about to include, I was wondering if someone could show me what I’d need to throw in there so that I always exit with my character standing by the driver’s side door, regardless of the orientation of the car. Thanks in advance!

else if (inVehicle) {
			rigidbody.isKinematic = true;
			inVehicle = false;
			nextToVehicle = false;
			VehicleCam.camera.enabled = false;
			Player = Instantiate(GameObject.Find("Clone"), transform.position + new Vector3(-2, 0, 0), transform.rotation) as GameObject;
			Player.name = "Player";
			Player.tag = "Player";
			CharacterMotor PlayerScript = Player.GetComponent<CharacterMotor>();
			PlayerScript.canControl = true;
			miniMapScript.playerTransform = Player.transform;
			followScript.target = Player.transform;

Maybe add an empty game object that is a child of the vehicle and use it as a spawn point, position it by the drivers side door and use it’s position as the reference position in your instantiate


// doesn’t work
// offsetting by global coordinates the same direction every time
Vector3 exitPosition = transform.position + new Vector3(-2, 0, 0);

// does work
// offset taking transform rotation into account
Vector3 exitPosition = transform.position + transform.right * -2;

Player = Instantiate(GameObject.Find("Clone"), exitPosition, transform.rotation) as GameObject;
...