mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-21 15:59:18 +02:00
use glm instead of Math3D in vehicle
WARNING: Model rotation is broken
This commit is contained in:
@@ -928,9 +928,9 @@ sound_source::location() const {
|
||||
// otherwise combine offset with the location of the carrier
|
||||
return {
|
||||
m_owner->GetPosition()
|
||||
+ m_owner->VectorLeft() * m_offset.x
|
||||
+ m_owner->VectorUp() * m_offset.y
|
||||
+ m_owner->VectorFront() * m_offset.z };
|
||||
+ m_owner->VectorLeft() * (double)m_offset.x
|
||||
+ m_owner->VectorUp() * (double)m_offset.y
|
||||
+ m_owner->VectorFront() * (double)m_offset.z };
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user