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

◆ AlignCatch()

override void TrapSpawnBase::AlignCatch ( ItemBase obj,
string catch_name )
inlineprivate

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

114 {
115 if ( catch_name == "Animal_LepusEuropaeus" )
116 {
117 obj.SetOrientation( GetOrientation() );
118
119 vector forward_vec = GetDirection();
120 vector side_vec = forward_vec.Perpend( ) * -0.22;
121 forward_vec = forward_vec * -0.3;
122
123 vector chatch_pos = obj.GetPosition() + forward_vec + side_vec;
124 obj.SetPosition( chatch_pos );
125 }
126 }
vector GetOrientation()
Определения AreaDamageManager.c:306
vector Perpend()
Returns perpendicular vector. Perpendicular vector is computed as cross product between input vector ...
Определения EnConvert.c:209

Перекрестные ссылки GetOrientation() и vector::Perpend().