Merge pull request #466 from teyrana/fix_463_motor_display

[fixes #463] Motors now rotate in RocketFigure side-view, back-view
This commit is contained in:
Wes Cravens 2018-11-03 12:13:27 -05:00 committed by GitHub
commit 2b78647f8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -276,6 +276,9 @@ public class RocketFigure extends AbstractScaleFigure {
Coordinate curMotorLocation = curMountLocation.add( mountLength - motorLength + mount.getMotorOverhang(), 0, 0);
// System.err.println(String.format(" mount instance: %s => %s", curMountLocation.toString(), curMotorLocation.toString() ));
// rotate by figure's axial rotation:
curMotorLocation = this.axialRotation.transform(curMotorLocation);
{
Shape s;
if (currentViewType == RocketPanel.VIEW_TYPE.SideView) {