Help with making a swinging door

Hello, I was wondering if it is possible to make a ramp that can fold in and out with a hinge constraint set to motor mode. If so please could some one explain to me how.

Could you explain better?
Are you trying to make a draw bridge?

I recommend creating a hinge opposite to the door handle. Weld the hinge to the door mesh or model. Then tween the hinge orientation by 90°

Yes I am trying to make some thing similar to a drawbridge it’s for a sci-fi space ship i am making