Page 1 of 1

Epoch ship has improper waterline value

Posted: 14 Dec 2010, 12:05
by slogic
In aseadragon.fbi waterline = 5, while according to movedef min water depth is 15. Fortunately engine clever updates "waterline" value.

Re: Epoch ship has improper waterline value

Posted: 14 Dec 2010, 13:15
by Beherith
Isnt waterline how deep the ship sinks into water, while mindepth is the shallowest water it can cross?

Re: Epoch ship has improper waterline value

Posted: 14 Dec 2010, 13:51
by slogic
I thought "waterline" is connected with "floater" so unit does not sink.

Hm, then how can you explain why engine updates waterline from 5 to 15?

Re: Epoch ship has improper waterline value

Posted: 14 Dec 2010, 14:14
by knorke
not sure, found this

Code: Select all

if (ud->floater) {
// restrict our depth to our waterline
unit->pos.y = std::max(-ud->waterline, ground->GetHeightReal(unit->pos.x, unit->pos.z));
} else {
unit->pos.y = ground->GetHeightReal(unit->pos.x, unit->pos.z);
}
https://github.com/spring/spring/blob/m ... Loader.cpp