Constant Force + Mouse Control Problem

Hello , im trying to create some spaceship game but im struggling with combining constant velocity and the mouse control options at the same time.

 FixedUpdate() {
			if (Input.GetButtonDown("Fire1"))
				rigidbody.velocity = new Vector3(0, 0, 10);

This code helps with constant force,however, i want to rotate this ship with my mouse while it is moving on its way. Conclusion, i need help with combining x,y,z mouse control with this constant force at the same time. Any help would be awesome

I’ll give you an example for rotation around y, you can figure out the other. First go to input manager and assign the horizontal axis to mouse movement.

void FixedUpdate() {
        public Vector3 eulerAngleVelocity = new Vector3(0, 100, 0);
        Quaternion deltaRotation = Quaternion.Euler(eulerAngleVelocity * Time.deltaTime * Input.GetAxis("Horizontal");
        rigidbody.MoveRotation(rigidbody.rotation * deltaRotation);

I would also change your constant force to transform.forward * 10 so you always move in the direction you are facing.