Aircraft hover distance mechanics
Moderator: Moderators
Aircraft hover distance mechanics
Hovering aircraft (in particular) seem to set their hover distance based on nearby terrain height. Can we have added control over this mechanic to allow aircraft to hover closer to the terrain directly underneath them? The speed of adjustment for the hovering height would preferably also be a setting.
Re: Aircraft hover distance mechanics
cruiseAlt = 10,
-
- Moderator
- Posts: 2464
- Joined: 12 Oct 2007, 09:24
Re: Aircraft hover distance mechanics
"Hover distance based on nearby terrain" makes me think that these aircraft are using smoothmesh.
Re: Aircraft hover distance mechanics
They are which is why we run into aircraft foing into terrain iirc
Re: Aircraft hover distance mechanics
aircraft use smoothmesh so that do not foing into terrain.
unless you disable it for that unit: useSmoothMesh=false
http://springrts.com/wiki/Units-UnitDefs#Aircraft
unless you disable it for that unit: useSmoothMesh=false
http://springrts.com/wiki/Units-UnitDefs#Aircraft
Re: Aircraft hover distance mechanics
smooth mesh is not here to prevent aircraft from flying into the terrain, but to make their movement less jerky/unrealistic at cliffs. it did infact cause aircraft to bump into terrain (might be fixed now, might not). it happened for example on that map with the north-south river with huge cliffs and lots of teleports to beam east<->west.
Last edited by hoijui on 21 Aug 2013, 15:11, edited 1 time in total.
Re: Aircraft hover distance mechanics
"flying into [steep] terrain" qualifies as "jerky/unrealistic at cliffs" imo.
From before there was airmesh thing I vaguely remember aircraft bouncing from cliffs very often.
So tested a bit with xta's core_shadow on "Castles" map: I was expecting the plane with disabled usesmoothmesh to run into the walls more often, but actually did not seem to make any difference in behaviour?
From before there was airmesh thing I vaguely remember aircraft bouncing from cliffs very often.
So tested a bit with xta's core_shadow on "Castles" map: I was expecting the plane with disabled usesmoothmesh to run into the walls more often, but actually did not seem to make any difference in behaviour?
Re: Aircraft hover distance mechanics
Castles isnt steep, try tabula penishills.
- Silentwings
- Posts: 3720
- Joined: 25 Oct 2008, 00:23
Re: Aircraft hover distance mechanics
Or the pillars the back of Industrial Revolution,although it is a bit ridiculous to expect aircraft to always avoid those.
Re: Aircraft hover distance mechanics

Northern Mountains the dividing hill I have seen units frequently clip through the huge center mountain of that map.
Re: Aircraft hover distance mechanics
Thank you all for the helpful replies, I apologize for not taking a close look at the source code beforehand.