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

◆ GetAimPosition()

vector ManBase::GetAimPosition ( )
inlineprotected

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

7568 {
7569 float min_distance = 0.5; //min distance, default = 5m
7570
7571 vector from = GetGame().GetCurrentCameraPosition();
7572 vector to = from + (GetGame().GetCurrentCameraDirection() * min_distance);
7573 vector contactPos;
7574 vector contactDir;
7575 int contactComponent;
7576
7577 DayZPhysics.RaycastRV(from, to, contactPos, contactDir, contactComponent, NULL, NULL, NULL, false, true);
7578
7579 return contactPos;
7580 }
proto native vector GetCurrentCameraPosition()
proto native vector GetCurrentCameraDirection()
proto native CGame GetGame()

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