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

◆ GetAimPosition()

vector ManBase::GetAimPosition ( )
inlineprotected

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

7560 {
7561 float min_distance = 0.5; //min distance, default = 5m
7562
7563 vector from = GetGame().GetCurrentCameraPosition();
7564 vector to = from + (GetGame().GetCurrentCameraDirection() * min_distance);
7565 vector contactPos;
7566 vector contactDir;
7567 int contactComponent;
7568
7569 DayZPhysics.RaycastRV(from, to, contactPos, contactDir, contactComponent, NULL, NULL, NULL, false, true);
7570
7571 return contactPos;
7572 }
proto native vector GetCurrentCameraPosition()
proto native vector GetCurrentCameraDirection()
proto native CGame GetGame()

Перекрестные ссылки CGame::GetCurrentCameraDirection(), CGame::GetCurrentCameraPosition(), GetGame() и DayZPhysics::RaycastRV().