Continue HUD
This commit is contained in:
parent
b177e924dd
commit
7c3eac7d9f
4 changed files with 117 additions and 32 deletions
14
renderer.h
14
renderer.h
|
@ -1621,6 +1621,20 @@ void LCR_rendererCameraFollow(void)
|
|||
#endif
|
||||
}
|
||||
|
||||
void LCR_rendererCameraReset(void)
|
||||
{
|
||||
LCR_renderer.scene.camera.transform.translation =
|
||||
LCR_renderer.carModel->transform.translation;
|
||||
|
||||
LCR_renderer.scene.camera.transform.translation.x -=
|
||||
S3L_sin(LCR_renderer.carModel->transform.rotation.y);
|
||||
|
||||
LCR_renderer.scene.camera.transform.translation.z +=
|
||||
S3L_cos(LCR_renderer.carModel->transform.rotation.y);
|
||||
|
||||
LCR_rendererCameraFollow();
|
||||
}
|
||||
|
||||
void LCR_rendererSetWheelState(LCR_GameUnit rotation, LCR_GameUnit steer)
|
||||
{
|
||||
#if LCR_ANIMATE_CAR
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue