• RuntimesGodotBugs
  • [Godot] Gravity in physics constraint is reversed in Godot

When I tried to use the physics constraint, the gravity is going up instead of down when imported to Godot.

Step by step recreation

  1. In Spine, Create a bone with physics constraint
  2. Set gravity to 100
  3. Export and load it into Godot
  4. When spawned or played in Godot editor, the bone goes up instead of down

Example project

  • Spine :
    gravityspineproject.zip
    12kB
  • Godot :
    gravitygodotproject.zip
    14kB

Spine version 4.2.20
Godot version 4.2.2

  • Misaki đã trả lời bài viết này.
    Related Discussions
    ...

    ferdyslab Sorry, there seems to be an error in the upload process and I am unable to download the files you attached.
    I have also tried to reproduce the problem using the steps you describe, but have been unable to do so. The bone with Gravity:100 in the physics constraint moved down as expected.

    Therefore, could you please email us the reproduction project so that we can see the actual problem? : contact@esotericsoftware.com
    Please include the URL of this forum thread in the email so we know the context. Then we can take a look at what's wrong.

    Thanks for the response! I have sent the mail of the reproduction project.

    • Misaki đã trả lời bài viết này.
    • Misaki đã thích điều này.

      Sorry about that! We've fixed the forum losing uploaded files.

      ferdyslab Thank you for emailing us your repro project! We were able to reproduce the problem and have created an issue ticket for a fix here: EsotericSoftware/spine-runtimes2524
      You can subscribe to this issue ticket to receive notifications when there is any progress on this issue.

      There was a bug in PhysicsConstraint.cpp, which didn't apply gravity properly in some cases. This is now fixed in the 4.2 branch.

      Currently building new Godot binaries. You can download them from the spine-godot docs page once this build has succeeded:
      EsotericSoftware/spine-runtimesactions/runs/9076616221

      Thank you for fixing it! I really appreciate was really fast it to fix it, thanks again!