Scaling on Y in collection different ingame vs in editor (#3215)

#1

Describe the bug (REQUIRED)
I flipped one of the objects in a collection along the Y-axis in the editor to make a RHS-version.

See below:

In-game, the flip is not reflected:

14%20pm

Expected behavior (REQUIRED)
I expected the editor to show the same as what occurred in-game.

Defold version (REQUIRED):

  • Version 1.2.168

Platforms (REQUIRED):

  • Platforms: macOS
  • OS: [e.g. iOS8.1, Windows 10, High Sierra]
  • Device: Macbook Pro 15"
0 Likes

#2

Oh, hey, it works if you set Z scale to -1 as well.

0 Likes

#3

I believe we have an issue with the editor being able to set a negative scale value.
This is not something we intend to support I’m afraid.

1 Like

#4

That’s disappointing, as you can see it’s extremely useful.
I would love it if we could keep it.

0 Likes

#5

You can achieve the same effect by a combination of y and z rotations :wink:

2 Likes

#6

Thanks I’ll give this a try. Hopefully this fixes the other issue I was having (non-bug) with negative scaling flipping the rotation direction of mirrored turrets in calculations (i.e. positive angles rotate anti clockwise).

0 Likes

#7

Issue: https://github.com/defold/defold/issues/3215

0 Likes