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;