Closed kianzarrin closed 4 years ago
This implementation caused problems. Maybe this is better -
if(info.m_netAI.IsOverground())
{
NetManager.instance.m_nodes.m_buffer[nodeId].m_elevation = GetElevation(position);
}
Opps sorry for the late response. I just noticed this. Under ground roads also have positive elevation.
I also need to check if FRT exists and is not in force ground mode.
EDIT: or maybe check NetAI.IsUnder/OverGround()
fixes #10
for the sake of calculation of elevation I use
SampleDetailHeightSmooth
instead ofSampleRawHeightSmooth
becauseSampleRawHeightSmooth
gave me bad results.