Closed NaskyD closed 9 years ago
In the last commit I made several changes to the way in which wagons load and use their geometry: For every wagon there are now two models, named 'left' and 'right', that are used for wagons on the left and right track respectively. Furthermore I found the reason for several inverted signs I was wondering about for a long time: The wagon models are mirrored along the x-axis causing their front to be in negative instead of positive x direction. I fixed this with the currently available models. @NaskyD please consider this if you commit further models. Also the wagonOffset and length calculations use the wagons bounding box now, so there will be no need to set those values manually. @NaskyD Sorry for the inevitable merge conflicts =]
The branch works on my machine but the shots are flying far left of the center of the screen. Maybe the changes in model coordinates require reworking the shooting mechanism.
edit: fixed it, fire() adjusted for the weird axis we had before and i just changed it to what would be expected.
not sure if this branch can be deleted but I merged it as it works at the moment. I also merged it to 78_multiplayer.
Due to an unfinished repairWagon model, a mockup (closed weaponWagon) is used instead