“Yup because the d floating needle points to magnetoc north”
Well, one end does, the other end points the other way. And that only works if you magnetized the needle before you left, and also packed a cork and a cup (plastic) for the water.
Before going to that much trouble, just pack a compass.
Oh also you have to know how to use a compass, and just knowing “north” won’t get you unlost.
Of course you could check the sun, turn so your left shoulder is west, then you will be facing north.