|
Dayz Explorer
1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
|
Go to the documentation of this file.
8 super.OnUpdate(pDt, pOutResult);
10 pOutResult.m_fUseHeading = 0.0;
11 pOutResult.m_bUpdateEveryFrame =
GetGame().IsPhysicsExtrapolationEnabled();
21 static const float CONST_UD_MAX = 85.0;
23 static const float CONST_LR_MIN = -160.0;
24 static const float CONST_LR_MAX = 160.0;
43 Transport transport = vehicleCommand.GetTransport();
47 m_fDistance = transport.GetTransportCameraDistance();
57 vector baseAngles = pPrevCamera.GetBaseAngles();
61 vector addAngles = pPrevCamera.GetAdditiveAngles();
75 vector playerTransformWS[4];
76 m_pPlayer.GetTransform(playerTransformWS);
80 pOutResult.m_CollisionIgnoreEntity = vehicle;
86 vector vehiclePositionWS = vehicle.GetOrigin();
87 vector vehiclePositionMS = vehiclePositionWS.InvMultiply4(playerTransformWS);
103 posDiffLS = posDiffWS.InvMultiply3(playerTransformWS);
106 rotDiffLS = rotDiffWS.InvMultiply3(playerTransformWS);
131 pOutResult.m_fUseHeading = 0.0;
132 pOutResult.m_fInsideCamera = 0.0;
133 pOutResult.m_fIgnoreParentRoll = 1.0;
134 pOutResult.m_bUpdateEveryFrame =
GetGame().IsPhysicsExtrapolationEnabled();
138 super.OnUpdate(pDt, pOutResult);
protected float m_fUpDownAngleAdd
up down angle in rad
proto native CGame GetGame()
class DayZPlayerCamera1stPersonVehicle extends DayZPlayerCamera1stPerson CONST_UD_MIN
down limit
override void OnUpdate(float pDt, out DayZPlayerCameraResult pOutResult)
protected float m_fLagOffsetVelocityRoll[1]
float UpdateUDAngleUnlocked(out float pAngle, out float pAngleAdd, float pMin, float pMax, float pDt)
class DayZPlayerCameraResult DayZPlayerCamera(DayZPlayer pPlayer, HumanInputController pInput)
protected vector m_CameraOffsetMS
runtime config
const float CONST_ANGULAR_LAG_YAW_STRENGTH
protected Transport m_Transport
cache
protected float m_fDistance
distance from start
protected float m_fUpDownAngle
runtime values
float UpdateLRAngleUnlocked(out float pAngle, out float pAngleAdd, float pMin, float pMax, float pDt)
protected float m_fLagOffsetVelocityYaw[1]
protected vector m_LagOffsetPosition
lag offsets
protected float m_fLeftRightAngleAdd
left right angle in rad
override void OnActivate(DayZPlayerCamera pPrevCamera, DayZPlayerCameraResult pPrevCameraResult)
protected DayZPlayer m_pPlayer
data
protected float m_CurrentCameraPitch
protected float m_fLagOffsetVelocityPitch[1]
Base native class for all motorized wheeled vehicles.
void DayZPlayerCamera3rdPersonVehicle(DayZPlayer pPlayer, HumanInputController pInput)
const float CONST_ANGULAR_LAG_ROLL_STRENGTH
override vector GetBaseAngles()
this is main camera class
protected float m_fLeftRightAngle
left right angle in rad
protected float m_fLagOffsetVelocityZ[1]
proto vector dBodyGetAngularVelocity(notnull IEntity body)
Gets angular velocity for a rigidbody.
override vector GetAdditiveAngles()
const float CONST_ANGULAR_VELOCITY_STRENGTH
protected float m_CurrentCameraYaw
protected float m_fLagOffsetVelocityX[1]
const float CONST_LINEAR_VELOCITY_STRENGTH
void StdFovUpdate(float pDt, out DayZPlayerCameraResult pOutResult)
vector GetCurrentOrientation()
proto native vector GetVelocity(notnull IEntity ent)
Returns linear velocity.
protected float m_CurrentCameraRoll
const float CONST_ANGULAR_LAG_PITCH_STRENGTH
protected vector m_LagOffsetOrientation
protected float m_fLagOffsetVelocityY[1]