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

◆ GetCeilingHeight()

bool GetCeilingHeight ( out float actual_height)
protected

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

1292 {
1293 vector from = this.GetPosition();
1294 vector to = this.GetPosition();
1295 from[1] = from[1] + 1.0;
1296 to[1] = to[1] + MIN_CEILING_HEIGHT;
1297 vector contactPos;
1298 vector contactDir;
1299 int contactComponent;
1300
1301 bool hit = DayZPhysics.RaycastRV(from, to, contactPos, contactDir, contactComponent, NULL, NULL, this);
1302 actual_height = vector.Distance(from, contactPos) + 1.0;
1303
1304 return hit;
1305 }
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().