I'm making a racing game and I'm having problems with Z-Order.
The track is formed by four models: one, the track itself; two, the high-speed turns; three and four, the guardrails. Their Z-Orders are for some reason wrong, so things are rendered in front or behind of them despite their spatial distribution.

Here are some examples:




Please, somebody help me!!