mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
reverted pantograph control changes, removed some of the type conversion warnings
This commit is contained in:
6
sun.cpp
6
sun.cpp
@@ -33,9 +33,9 @@ void
|
||||
cSun::update() {
|
||||
|
||||
move();
|
||||
glm::vec3 position( 0.0f, 0.0f, -2000.0f * Global::fDistanceFactor );
|
||||
position = glm::rotateX( position, (float)( m_body.elevref * ( M_PI / 180.0 ) ) );
|
||||
position = glm::rotateY( position, (float)( -m_body.hrang * ( M_PI / 180.0 ) ) );
|
||||
glm::vec3 position( 0.f, 0.f, -2000.f * Global::fDistanceFactor );
|
||||
position = glm::rotateX( position, glm::radians<float>( m_body.elevref ) );
|
||||
position = glm::rotateY( position, glm::radians<float>( -m_body.hrang ) );
|
||||
|
||||
m_position = position;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user