Strdate / AutomaticRoundaboutBuilder

Cities Skylines mod
19 stars 12 forks source link

fixed elevation #11

Closed kianzarrin closed 4 years ago

kianzarrin commented 4 years ago

fixes #10

for the sake of calculation of elevation I use SampleDetailHeightSmooth instead of SampleRawHeightSmooth because SampleRawHeightSmooth gave me bad results.

Strdate commented 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);
}
kianzarrin commented 4 years ago

Opps sorry for the late response. I just noticed this. Under ground roads also have positive elevation. Screenshot (756)

I also need to check if FRT exists and is not in force ground mode.

EDIT: or maybe check NetAI.IsUnder/OverGround()