mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-18 00:49:19 +02:00
Remove dumb3d
This commit is contained in:
@@ -12,6 +12,7 @@ http://mozilla.org/MPL/2.0/.
|
||||
|
||||
#include "utilities/Globals.h"
|
||||
#include "utilities/utilities.h"
|
||||
#include "utilities/glmHelpers.h"
|
||||
#include "Console.h"
|
||||
#include "utilities/Timer.h"
|
||||
#include "vehicle/Driver.h"
|
||||
@@ -171,7 +172,7 @@ void TCamera::Update()
|
||||
|| ( true == DebugCameraFlag ) ) {
|
||||
// free movement position update
|
||||
auto movement { Velocity };
|
||||
movement = Math3D::RotateY(movement, Angle.y);
|
||||
movement = RotateY(movement, Angle.y);
|
||||
Pos += movement * 5.0 * deltatime;
|
||||
}
|
||||
else {
|
||||
@@ -194,7 +195,7 @@ void TCamera::Update()
|
||||
movement.y = -movement.y;
|
||||
}
|
||||
*/
|
||||
movement = Math3D::RotateY(movement, Angle.y);
|
||||
movement = RotateY(movement, Angle.y);
|
||||
|
||||
m_owneroffset += movement * deltatime;
|
||||
}
|
||||
|
||||
@@ -23,6 +23,7 @@ http://mozilla.org/MPL/2.0/.
|
||||
#include "utilities/Globals.h"
|
||||
#include "utilities/Timer.h"
|
||||
#include "utilities/Logs.h"
|
||||
#include "utilities/glmHelpers.h"
|
||||
#include "Console.h"
|
||||
#include "world/Traction.h"
|
||||
#include "audio/sound.h"
|
||||
@@ -2695,7 +2696,7 @@ void TDynamicObject::Move(double fDistance)
|
||||
vLeft = glm::normalize(glm::cross(vUp, vFront)); // wektor w lewo
|
||||
// vUp=CrossProduct(vFront,vLeft); //wektor w górę
|
||||
}
|
||||
mMatrix = Math3D::BasisChange(vLeft, vUp, vFront); // to też można by od razu policzyć, ale potrzebne jest do wyświetlania // przesuwanie jest jednak rzadziej niż renderowanie
|
||||
mMatrix = BasisChange(vLeft, vUp, vFront); // to też można by od razu policzyć, ale potrzebne jest do wyświetlania // przesuwanie jest jednak rzadziej niż renderowanie
|
||||
mMatrix = glm::inverse(mMatrix); // wyliczenie macierzy dla pojazdu (potrzebna tylko do wyświetlania?)
|
||||
// if (MoverParameters->CategoryFlag&2)
|
||||
{ // przesunięcia są używane po wyrzuceniu pociągu z toru
|
||||
|
||||
@@ -23,7 +23,6 @@ http://mozilla.org/MPL/2.0/.
|
||||
#include "utilities/Logs.h"
|
||||
#include "model/MdlMngr.h"
|
||||
#include "model/Model3d.h"
|
||||
#include "utilities/dumb3d.h"
|
||||
#include "utilities/Timer.h"
|
||||
#include "vehicle/Driver.h"
|
||||
#include "vehicle/DynObj.h"
|
||||
|
||||
Reference in New Issue
Block a user