Giter Club home page Giter Club logo

Comments (5)

AThousandShips avatar AThousandShips commented on July 3, 2024

To clarify, part of the issue is that changing disabled to false or true triggers the signals? For the body that was disabled? Or also for the body that didn't change? I'm testing the MRP but the description in the issue is a bit unclear

from godot.

Lazy-Rabbit-2001 avatar Lazy-Rabbit-2001 commented on July 3, 2024

To clarify, part of the issue is that changing disabled to false or true triggers the signals?

afaik yes

For the body that was disabled? Or also for the body that didn't change?

Pardon, I didn't get what you meant "didn't change"... maybe referring to the body whose CollisionShape2D didn't get its shape or disabled modified?

from godot.

AThousandShips avatar AThousandShips commented on July 3, 2024

My bad, the description was quite poor so it was hard to determine what you meant, tested the MRP and the part about the shape being changed is something I'd say is not necessarily a bug, something to discuss

The disabling and enabling part is harder to decide on, but I think it's still something that's not clear cut

The body does technically exit and then enter as the methods aren't called immediately, so there's still time between, though it still happens if you enable one and then disable the other

If you enable one and then wait more and then disable the other it does not occur, so this is based on the temporary state as things update, I'm not sure this is a bug or not

So this isn't entirely a simple question

from godot.

AThousandShips avatar AThousandShips commented on July 3, 2024

Update: It does not happen at all if the change occurs during a physics frame, try this:

await get_tree().create_timer(2).timeout

await get_tree().physics_frame

collision_shape_2d.shape = ISSUE_1_2

So this is probably related to changing physics stuff outside of a physics frame, which might not be supported

from godot.

Lazy-Rabbit-2001 avatar Lazy-Rabbit-2001 commented on July 3, 2024

Update: It does not happen at all if the change occurs during a physics frame, try this:

await get_tree().create_timer(2).timeout

await get_tree().physics_frame

collision_shape_2d.shape = ISSUE_1_2

So this is probably related to changing physics stuff outside of a physics frame, which might not be supported

Yes, the physics frame did solve the problem of changing the shape, but didn't solve the problem of switching disable between two CollisionShape2Ds or among more of the latter

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.