Dayz Explorer
1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
|
Go to the source code of this file.
Data Structures | |
class | DayZPlayerCamera1stPerson |
Functions | |
void | DayZPlayerCamera3rdPersonVehicle (DayZPlayer pPlayer, HumanInputController pInput) |
override void | OnActivate (DayZPlayerCamera pPrevCamera, DayZPlayerCameraResult pPrevCameraResult) |
override void | OnUpdate (float pDt, out DayZPlayerCameraResult pOutResult) |
override vector | GetBaseAngles () |
override vector | GetAdditiveAngles () |
void DayZPlayerCamera3rdPersonVehicle | ( | DayZPlayer | pPlayer, |
HumanInputController | pInput | ||
) |
Definition at line 33 of file dayzplayercameravehicles.c.
override vector GetAdditiveAngles | ( | ) |
Definition at line 150 of file dayzplayercameravehicles.c.
override vector GetBaseAngles | ( | ) |
Definition at line 141 of file dayzplayercameravehicles.c.
override void OnActivate | ( | DayZPlayerCamera | pPrevCamera, |
DayZPlayerCameraResult | pPrevCameraResult | ||
) |
Definition at line 53 of file dayzplayercameravehicles.c.
override void OnUpdate | ( | float | pDt, |
out DayZPlayerCameraResult | pOutResult | ||
) |
get player transform
get vehicle and set it as ignore entity for camera collision solver
update camera offset
orientation LS
create LS lag from vehicle velocities
smooth it!
setup orientation
setup position
setup rest
Definition at line 72 of file dayzplayercameravehicles.c.
const float CONST_ANGULAR_LAG_PITCH_STRENGTH = 1.5 |
Definition at line 30 of file dayzplayercameravehicles.c.
const float CONST_ANGULAR_LAG_ROLL_STRENGTH = 0.0 |
Definition at line 31 of file dayzplayercameravehicles.c.
const float CONST_ANGULAR_LAG_YAW_STRENGTH = 4.0 |
Definition at line 29 of file dayzplayercameravehicles.c.
const float CONST_ANGULAR_VELOCITY_STRENGTH = 0.025 |
Definition at line 27 of file dayzplayercameravehicles.c.
const float CONST_LINEAR_VELOCITY_STRENGTH = 0.025 |
Definition at line 26 of file dayzplayercameravehicles.c.
class DayZPlayerCamera1stPersonVehicle extends DayZPlayerCamera1stPerson CONST_UD_MIN = -85.0 |
down limit
protected vector m_CameraOffsetMS |
protected float m_fDistance |
distance from start
Definition at line 161 of file dayzplayercameravehicles.c.
protected float m_fLagOffsetVelocityPitch[1] |
Definition at line 176 of file dayzplayercameravehicles.c.
protected float m_fLagOffsetVelocityRoll[1] |
Definition at line 177 of file dayzplayercameravehicles.c.
protected float m_fLagOffsetVelocityX[1] |
Definition at line 172 of file dayzplayercameravehicles.c.
protected float m_fLagOffsetVelocityY[1] |
Definition at line 173 of file dayzplayercameravehicles.c.
protected float m_fLagOffsetVelocityYaw[1] |
Definition at line 175 of file dayzplayercameravehicles.c.
protected float m_fLagOffsetVelocityZ[1] |
Definition at line 174 of file dayzplayercameravehicles.c.
protected float m_fLeftRightAngle |
left right angle in rad
Definition at line 166 of file dayzplayercameravehicles.c.
protected float m_fLeftRightAngleAdd |
left right angle in rad
Definition at line 167 of file dayzplayercameravehicles.c.
protected float m_fUpDownAngle |
protected float m_fUpDownAngleAdd |
up down angle in rad
Definition at line 165 of file dayzplayercameravehicles.c.
protected vector m_LagOffsetOrientation |
Definition at line 171 of file dayzplayercameravehicles.c.
protected vector m_LagOffsetPosition |
lag offsets
Definition at line 170 of file dayzplayercameravehicles.c.
protected Transport m_Transport |
cache
Definition at line 180 of file dayzplayercameravehicles.c.