mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-12 19:54:09 +00:00
SetPosition, final part
This commit is contained in:
parent
131e8af174
commit
84c9484e55
20 changed files with 129 additions and 143 deletions
|
@ -900,10 +900,10 @@ bool CReplay::PlayBackThisFrameInterpolation(CAddressInReplayBuffer *buffer, flo
|
|||
TheCamera.GetMatrix().GetPosition() *= split;
|
||||
TheCamera.GetMatrix() += CMatrix(interpolation) * pg->camera_pos;
|
||||
RwMatrix* pm = RwFrameGetMatrix(RwCameraGetFrame(TheCamera.m_pRwCamera));
|
||||
pm->pos = *(RwV3d*)TheCamera.GetPosition();
|
||||
pm->at = *(RwV3d*)TheCamera.GetForward();
|
||||
pm->up = *(RwV3d*)TheCamera.GetUp();
|
||||
pm->right = *(RwV3d*)TheCamera.GetRight();
|
||||
pm->pos = TheCamera.GetPosition();
|
||||
pm->at = TheCamera.GetForward();
|
||||
pm->up = TheCamera.GetUp();
|
||||
pm->right = TheCamera.GetRight();
|
||||
CameraFocusX = split * CameraFocusX + interpolation * pg->player_pos.x;
|
||||
CameraFocusY = split * CameraFocusY + interpolation * pg->player_pos.y;
|
||||
CameraFocusZ = split * CameraFocusZ + interpolation * pg->player_pos.z;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue