I was watching my friend playing a video game where they were running through some trees and eventually running toward/along a fence. I suggested to go the opposite direction of the fence, but they seemed confused by the suggestion of what direction that actually meant. I've always understood the phrase "go opposite direction of [blank]" to mean if you were facing [blank] straight-on, to take a 180° turn and go that direction. Is that an incorrect use of the word "opposite" when describing directions from an object?
I wouldn't go so far as it call it wrong, but it strikes me as both unnatural (not many people would say that) and unclear. "Go the opposite direction of X" seems like it should be an ellipsis of "go the opposite of the direction X is going", which isn't what you mean in this case. Since "go away from X" is available, and easily understood, it seems like the better choice.