• RuntimesGodot
  • Godot 4.3 - Access to Physics Constraint in GDScript?

Is Godot currently unable to access and manipulate the properties of the Physics Constraints, such as Inertia and Mix? What about C#?

  • Misaki ответили на это сообщение.
    Related Discussions
    ...

    skarasuko Roughly two weeks ago, a fix was made to expose PhysicsConstraint:
    EsotericSoftware/spine-runtimes2612
    So could you try downloading the latest build?

    • skarasuko ответили на это сообщение.

      Misaki I tried get_skeleton().find_physics_constraint() method. set_mix() seems to work but it seems like all the other properties aren't working. I tried set_inertia() and set_damping() and found no change visible.

      • Misaki ответили на это сообщение.

        skarasuko Perhaps the values you have set are not reflected correctly in the skeleton, or have been overwritten due to timing issues, for example. Could you show us the script you tried? I think @Mario can advise you on this.

        • skarasuko ответили на это сообщение.

          Misaki I think I can assume the issue. There was a key applied for "Gravity" in some of the animation. It doesn't seem like the physics manipulation in the code would work properly if some other physics was keyed.

          • Изменено

          Ignore the above, I think there's something weird with my Spine file I can't pinpoint.

          Actually, I found out. Inertia was keyed in another animation in a different Track.