X Tutup
Skip to content

Add option to BoneConstraint3D to make reference target allow to set Node3D#110336

Merged
Repiteo merged 1 commit intogodotengine:masterfrom
TokageItLab:constraint-mod-node
Nov 14, 2025
Merged

Add option to BoneConstraint3D to make reference target allow to set Node3D#110336
Repiteo merged 1 commit intogodotengine:masterfrom
TokageItLab:constraint-mod-node

Conversation

@TokageItLab
Copy link
Member

@TokageItLab TokageItLab commented Sep 9, 2025

Allows setting a Node3D as the reference target for BoneConstraint3Ds.

  • AimModifier3D
    • Works as a lightweight LookAtModifier allowing settings to be applied to multiple bones, but no advance options (limitation, timebased interpolation, origin setting)
    • It can be used for applications where you want to align the plane of the IK rotation
  • Copy/ConvertTransformModifier3D
    • Allows to transfer transforms in ModelSpace, which is useful for matching the tip bone of IK chain with IK target

The video below is a demo combined with IK #110120

constraint_with_ik.mp4

Other minor changes:

  • Vector to LocalVector
  • Add a defensive code on memdelete

Project file:
ik_test_match_target.zip
(require to merge both #110120 and this PR)

@TokageItLab TokageItLab added this to the 4.6 milestone Sep 9, 2025
@TokageItLab TokageItLab requested a review from a team September 9, 2025 03:01
@TokageItLab TokageItLab requested review from a team as code owners September 9, 2025 03:01
@TokageItLab TokageItLab moved this to Ready for review in Animation Team Issue Triage Sep 9, 2025
@TokageItLab TokageItLab changed the title Add option to BoneConstraint3D to make reference target allow node Add option to BoneConstraint3D to make reference target allow to set Node3D Sep 9, 2025
@TokageItLab TokageItLab force-pushed the constraint-mod-node branch 3 times, most recently from 808ad2c to 9e9ab03 Compare September 16, 2025 10:26
@TokageItLab TokageItLab mentioned this pull request Sep 19, 2025
@TokageItLab TokageItLab force-pushed the constraint-mod-node branch 2 times, most recently from 261bc51 to 98709ef Compare October 3, 2025 01:38
@TokageItLab TokageItLab force-pushed the constraint-mod-node branch 2 times, most recently from 5fa5d96 to c680327 Compare October 7, 2025 18:15
@TokageItLab TokageItLab requested review from a team as code owners October 7, 2025 18:15
@TokageItLab TokageItLab requested a review from a team October 7, 2025 18:15
@TokageItLab TokageItLab requested a review from a team as a code owner October 7, 2025 18:15
@TokageItLab TokageItLab requested a review from a team October 7, 2025 18:15
@TokageItLab TokageItLab force-pushed the constraint-mod-node branch 4 times, most recently from eb919c8 to a457efa Compare October 14, 2025 12:41
@TokageItLab TokageItLab force-pushed the constraint-mod-node branch 3 times, most recently from 64e9e54 to 6f335b2 Compare October 31, 2025 23:40
@TokageItLab TokageItLab force-pushed the constraint-mod-node branch 3 times, most recently from 5c8a94a to 6afe51d Compare November 3, 2025 17:54
@TokageItLab TokageItLab requested a review from a team as a code owner November 3, 2025 17:54
Copy link
Contributor

@lyuma lyuma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Discussed in meeting. Looks good

I think there is room to
Improve NodePath -> Node3D* cache in the future (maybe using ObjectID or Variant) but this optimization should be a separate PR after we finish IK

@TokageItLab TokageItLab moved this from Ready for review to Approved, Waiting for Production in Animation Team Issue Triage Nov 14, 2025
@Repiteo Repiteo merged commit 76e974d into godotengine:master Nov 14, 2025
20 checks passed
@github-project-automation github-project-automation bot moved this from Approved, Waiting for Production to Done in Animation Team Issue Triage Nov 14, 2025
@Repiteo
Copy link
Contributor

Repiteo commented Nov 14, 2025

Thanks!

@GeorgeS2019
Copy link

follow further discussion of godot demo on 3D IK here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants

X Tutup