From 1768c6d83e825ee1ba2548be570113786a07486d Mon Sep 17 00:00:00 2001 From: Daniel_M_Williams Date: Sat, 27 Oct 2018 16:17:20 -0400 Subject: [PATCH] [fixes #463] Motors now rotate in RocketFigure side-view, back-view --- swing/src/net/sf/openrocket/gui/scalefigure/RocketFigure.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/swing/src/net/sf/openrocket/gui/scalefigure/RocketFigure.java b/swing/src/net/sf/openrocket/gui/scalefigure/RocketFigure.java index d55946e36..71a9f639e 100644 --- a/swing/src/net/sf/openrocket/gui/scalefigure/RocketFigure.java +++ b/swing/src/net/sf/openrocket/gui/scalefigure/RocketFigure.java @@ -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) {