Skip to content

Parent effect redone#710

Open
pgilfernandez wants to merge 3 commits intofriction2d:mainfrom
pgilfernandez:parent-effect-rotation-influence-v1
Open

Parent effect redone#710
pgilfernandez wants to merge 3 commits intofriction2d:mainfrom
pgilfernandez:parent-effect-rotation-influence-v1

Conversation

@pgilfernandez
Copy link

After fighting with #707 issue, I ended up doing it with help of AI as the original implementation had some things I didn't like at all (apart from those strange behaviors) and because doing a "parent effect" is doable but adding influences elevates the complexity too much for my skills.

The code includes some special situations that needed special code such as being able to edit the child object (the object with the effect) transform and keep the relationship right and so many more... I hope this is not an inconvenience. In the way I added a visual line that connects the child with the parent when the child is selected, it doesn't change versions so it's safe for v1.0.

I hope you like it!

parent_effect_v2d

I'm including here my test file in case you want to test the feature, I'm probably mission more situations that I didn't test so it would be necessary to have a look at them all to verify the new code.

@rodlie
Copy link
Member

rodlie commented Feb 8, 2026

That's a lot of code...anyway, verify with @nuxttux that everything is working as expected, then let's look at the code :)

@pgilfernandez
Copy link
Author

pgilfernandez commented Feb 9, 2026

As commented in #707 (comment), I'm adding an extra fix to let move groups of parents without moving children... Friction does it this way so it might be the best way to do less harm while fixing the odd behaviors, @rodlie it's your decision to choose the new "strict" parenting mode or go for a softer one as I proposed with this last commit.

Here is a new project to test this situation parent_influences_v04.friction.zip

BTW, it probably still needs to be tested under more circumstances...

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants