• 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 ha risposto a questo messaggio
    Related Discussions
    ...

    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 ha risposto a questo messaggio

      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.

        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.