mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-16 23:54:10 +01:00
The door wings are in the main model, where the door animation finds them, so seen from inside the vehicle they are lit like the exterior and ignore the compartment lights. A door panel put into the low poly interior instead stayed closed, since nothing moved it. A door wing animation now also picks up the submodel of the same name in the low poly interior, if it has one, and gives it the same pose (shift, rotate, fold with its child wings, plug). Placed under a compartment section, such a wing is lit with the section and follows its light switch. The pose maths moved unchanged to vehicle/doorwings.h, with unit tests. Assets: optional. No low poly interior in the SVN or in the Steam install has a submodel named like a door wing, so nothing changes for existing vehicles. To use it, a low poly interior gets the inside of each door wing as a submodel named like the wing in the main model (door1, door01, drzwi1, ...), with the same pivot and transform, under the compartment section it belongs to, with a SelfIllum threshold like the section's, and slightly inside the wing of the main model.