16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-18 07:49:19 +02:00

3-axis rotation, and some corrections in editor mode

This commit is contained in:
Jano211
2023-08-11 21:22:46 +02:00
committed by Hirek
parent b14c1d9718
commit e5c317a7bf
6 changed files with 152 additions and 30 deletions

View File

@@ -659,8 +659,9 @@ TAnimModel::export_as_text_( std::ostream &Output ) const {
Output
<< location().x << ' '
<< location().y << ' '
<< location().z << ' '
<< vAngle.y << ' ';
<< location().z << ' ';
Output
<< "0 " ;
// 3d shape
auto modelfile { (
pModel ?
@@ -698,6 +699,11 @@ TAnimModel::export_as_text_( std::ostream &Output ) const {
Output << "notransition" << ' ';
}
// footer
Output << "angles "
<< vAngle.x << ' '
<< vAngle.y << ' '
<< vAngle.z << ' ';
// footer
Output
<< "endmodel"
<< "\n";