Added 9v cross.

This commit is contained in:
Leonardo Zide 2024-11-27 13:18:27 -08:00
parent a08ad3f81b
commit 07322215a0

View file

@ -6,9 +6,11 @@
#include "lc_application.h" #include "lc_application.h"
// todo: // todo:
// add cross 32087.dat and auto replace when going over a straight section // auto replace cross when going over a straight section
// detect existing connections // redo gizmo
// new gizmo mesh // add cross to gizmo
// rotate around connections
// shortcuts for changing active connection
// move config to json // move config to json
// add other track types // add other track types
@ -67,6 +69,20 @@ void lcTrainTrackInit(lcPiecesLibrary* Library)
TrainTrackInfo->AddConnection({lcMatrix44(lcMatrix33RotationZ(-22.5f * LC_DTOR), lcVector3(BranchX, -BranchY, 0.0f))}); TrainTrackInfo->AddConnection({lcMatrix44(lcMatrix33RotationZ(-22.5f * LC_DTOR), lcVector3(BranchX, -BranchY, 0.0f))});
TrainTrackInfo->AddConnection({lcMatrix44(lcMatrix33RotationZ(LC_PI), lcVector3(-320.0f, 0.0f, 0.0f))}); TrainTrackInfo->AddConnection({lcMatrix44(lcMatrix33RotationZ(LC_PI), lcVector3(-320.0f, 0.0f, 0.0f))});
Info->SetTrainTrackInfo(TrainTrackInfo);
}
Info = Library->FindPiece("32087.dat", nullptr, false, false);
if (Info)
{
lcTrainTrackInfo* TrainTrackInfo = new lcTrainTrackInfo();
TrainTrackInfo->AddConnection({lcMatrix44Translation(lcVector3(160.0f, 0.0f, 0.0f))});
TrainTrackInfo->AddConnection({lcMatrix44(lcMatrix33RotationZ(LC_PI / 2.0f), lcVector3(0.0f, 160.0f, 0.0f))});
TrainTrackInfo->AddConnection({lcMatrix44(lcMatrix33RotationZ(LC_PI), lcVector3(-160.0f, 0.0f, 0.0f))});
TrainTrackInfo->AddConnection({lcMatrix44(lcMatrix33RotationZ(-LC_PI / 2.0f), lcVector3(0.0f, -160.0f, 0.0f))});
Info->SetTrainTrackInfo(TrainTrackInfo); Info->SetTrainTrackInfo(TrainTrackInfo);
} }
} }