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

◆ GetCollisionBoxSize()

vector GetCollisionBoxSize ( vector min_max[2])
protected

См. определение в файле Construction.c строка 1113

1114 {
1115 vector box_size = Vector( 0, 0, 0 );
1116
1117 box_size[0] = Math.AbsFloat( min_max[1][0] - min_max[0][0] );
1118 box_size[1] = Math.AbsFloat( min_max[1][1] - min_max[0][1] );
1119 box_size[2] = Math.AbsFloat( min_max[1][2] - min_max[0][2] );
1120
1121 return box_size;
1122 }
Определения EnMath.c:7
Определения EnConvert.c:106
proto native vector Vector(float x, float y, float z)
Vector constructor from components.
static proto float AbsFloat(float f)
Returns absolute value.

Перекрестные ссылки Math::AbsFloat() и Vector().

Используется в GetTriggerExtents(), IsColliding() и IsCollidingEx().