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

◆ GetCeilingHeight()

bool GetCeilingHeight ( out float actual_height)
protected

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

1296 {
1297 vector from = this.GetPosition();
1298 vector to = this.GetPosition();
1299 from[1] = from[1] + 1.0;
1300 to[1] = to[1] + MIN_CEILING_HEIGHT;
1301 vector contactPos;
1302 vector contactDir;
1303 int contactComponent;
1304
1305 bool hit = DayZPhysics.RaycastRV(from, to, contactPos, contactDir, contactComponent, NULL, NULL, this);
1306 actual_height = vector.Distance(from, contactPos) + 1.0;
1307
1308 return hit;
1309 }
const float MIN_CEILING_HEIGHT
maximum temperature for dismantling oven
Определения FireplaceBase.c:64
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:119
vector GetPosition()
Get the world position of the Effect.
Определения Effect.c:473

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

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