Merge pull request #832 from wolsen/bug/785
Fix offset locations of mass components
This commit is contained in:
commit
bd251831f7
@ -33,7 +33,7 @@ public class MassComponentShapes extends RocketComponentShape {
|
||||
radialDistance * Math.sin(radialAngleRadians));
|
||||
final Coordinate renderPosition = transformation.transform(localPosition);
|
||||
|
||||
Shape[] s = {new RoundRectangle2D.Double(renderPosition.x - radius, renderPosition.y - radius, length, 2*radius, arc, arc)};
|
||||
Shape[] s = {new RoundRectangle2D.Double(renderPosition.x, renderPosition.y - radius, length, 2*radius, arc, arc)};
|
||||
|
||||
final MassComponent.MassComponentType type = ((MassComponent)component).getMassComponentType();
|
||||
switch (type) {
|
||||
|
@ -29,7 +29,7 @@ public class ParachuteShapes extends RocketComponentShape {
|
||||
radialDistance * Math.sin(radialAngleRadians));
|
||||
final Coordinate renderPosition = transformation.transform(localPosition);
|
||||
|
||||
Shape[] s = {new RoundRectangle2D.Double(renderPosition.x - radius, renderPosition.y - radius, length, 2*radius, arc, arc)};
|
||||
Shape[] s = {new RoundRectangle2D.Double(renderPosition.x, renderPosition.y - radius, length, 2*radius, arc, arc)};
|
||||
|
||||
return RocketComponentShape.toArray( addSymbol(s), component);
|
||||
}
|
||||
|
@ -28,7 +28,7 @@ public class StreamerShapes extends RocketComponentShape {
|
||||
radialDistance * Math.sin(radialAngleRadians));
|
||||
final Coordinate renderPosition = transformation.transform(localPosition);
|
||||
|
||||
Shape[] s = {new RoundRectangle2D.Double(renderPosition.x - radius, renderPosition.y - radius, length, 2*radius, arc, arc)};
|
||||
Shape[] s = {new RoundRectangle2D.Double(renderPosition.x, renderPosition.y - radius, length, 2*radius, arc, arc)};
|
||||
|
||||
return RocketComponentShape.toArray(addSymbol(s), component);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user