How do I constrain a component's physics movement to a single axis with a Physics Constraint?

Yea all my angular limits are locked, only the x axis is free, and I just tried locking just y or z and its just completely ignored.