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

◆ GetCeilingHeight()

bool GetCeilingHeight ( out float actual_height)
protected

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

1294 {
1295 vector from = this.GetPosition();
1296 vector to = this.GetPosition();
1297 from[1] = from[1] + 1.0;
1298 to[1] = to[1] + MIN_CEILING_HEIGHT;
1299 vector contactPos;
1300 vector contactDir;
1301 int contactComponent;
1302
1303 bool hit = DayZPhysics.RaycastRV(from, to, contactPos, contactDir, contactComponent, NULL, NULL, this);
1304 actual_height = vector.Distance(from, contactPos) + 1.0;
1305
1306 return hit;
1307 }
const float MIN_CEILING_HEIGHT
maximum temperature for dismantling oven
Определения FireplaceBase.c:63
static proto bool RaycastRV(vector begPos, vector endPos, out vector contactPos, out vector contactDir, out int contactComponent, set< Object > results=NULL, Object with=NULL, Object ignore=NULL, bool sorted=false, bool ground_only=false, int iType=ObjIntersectView, float radius=0.0, CollisionFlags flags=CollisionFlags.NEARESTCONTACT)
Raycasts world by given parameters.
Определения DayZPhysics.c:124
static proto native float Distance(vector v1, vector v2)
Returns the distance between tips of two 3D vectors.
Определения EnConvert.c:106
class JsonUndergroundAreaTriggerData GetPosition
Определения UndergroundAreaLoader.c:9

Перекрестные ссылки vector::Distance(), GetPosition, MIN_CEILING_HEIGHT и DayZPhysics::RaycastRV().

Используется в ParticleNormalSmokeStart() и ParticleSmallSmokeStart().