| 191 | } |
| 192 | |
| 193 | void MoveToGetInPos(AIUnit* unit, Transport& veh) |
| 194 | { |
| 195 | Vector3 pos = veh.GetUnitGetInPos(unit); |
| 196 | pos[1] = GLandscape->RoadSurfaceYAboveWater(pos[0], pos[2]); |
| 197 | Vector3 dir = veh.Position() - pos; |
| 198 | dir[1] = 0; |
| 199 | Matrix4 trans; |
| 200 | trans.SetUpAndDirection(VUp, dir); |
| 201 | trans.SetPosition(pos); |
| 202 | unit->GetPerson()->Move(trans); |
| 203 | } |
| 204 | |
| 205 | static bool AvoidBeInWith(AICenter* center, Person* person) |
| 206 | { |
no test coverage detected