DayZ 1.29
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ UpdatePathgraphRegionByObject()

void CGame::UpdatePathgraphRegionByObject ( Object object)
inlineprotected

См. определение в файле Global/game.c строка 1272

1273 {
1274 if ( object )
1275 {
1276 vector pos = object.GetPosition();
1277 vector min_max[2];
1278 float radius = object.ClippingInfo ( min_max );
1279 vector min = Vector ( pos[0] - radius, pos[1], pos[2] - radius );
1280 vector max = Vector ( pos[0] + radius, pos[1], pos[2] + radius );
1281 UpdatePathgraphRegion( min, max );
1282 }
1283 }
proto native void UpdatePathgraphRegion(vector regionMin, vector regionMax)
proto native vector Vector(float x, float y, float z)
Vector constructor from components.

Перекрестные ссылки UpdatePathgraphRegion() и Vector().