Giter Club home page Giter Club logo

Comments (4)

aekobear avatar aekobear commented on August 26, 2024 1

Nite that negative x scales are not supported so unsure how this should be treated

Ah interesting. The note says that scale.x = -1 will be converted to scale.y = -1; rotation = 180, and when I look at the remote inspector, I see that the node is flickering between

scale.y = -1
rotation = 180

and

scale.y = 1
rotation = 180

if I flip the node2D by setting scale.y and rotation instead of scale.x, the flickering doesn't happen. And if I use scale.x in conjunction with translate() or position, the flickering doesn't happen

Even though "scale.x = -1" is technically unsupported, this seems like the only edge case where the compatibility code doesn't work right. If it's fixable, I think that'd be a big win

from godot.

AThousandShips avatar AThousandShips commented on August 26, 2024 1

If I was to guess I'd say this likely isn't an edge case but rather the entirety of the limitation, it doesn't necessarily convert anything, I'd say it's more that there's no way to tell the difference with the way we encode 2D transformations, but investigating if there's a specific issue here, rather than just the broader limitation, is a good idea, but otherwise this would fall under that broader discussion about changes to the 2D core mathematics which has a lot of things to consider, which I can't find any ongoing discussion for at the moment

But I'd say that the approach would be to avoid using or relying on any behavior with scale.x == -1 because of the limitations and potential weird behavior in a case that's not officially supported

from godot.

aekobear avatar aekobear commented on August 26, 2024

Some more information: I was able to reproduce the flickering problem in 3D on Godot 3.0. I wonder if it was a bug which has been fixed for 3D but 2D was overlooked at the time

from godot.

AThousandShips avatar AThousandShips commented on August 26, 2024

Nite that negative x scales are not supported so unsure how this should be treated

from godot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.