Skip to content

Conversation

@pgilfernandez
Copy link

It all started playing around with a simple change to the line you highlighed to me:
https://github.com/friction2d/friction/blob/parent-effect-influence/src/core/TransformEffects/parenteffect.cpp#L92

postTransform.rotate(targetRot * (rotInfl - 1));

but ended with AI support into a bigger thing but works way better than the previous one.

Now rotation influence works fine at any value and more important, its relative position to the parent doesn't get messed up:

parenting_2

Here is my little test file in case you want to play with it: parenting.zip

Let me know what do you think.

@rodlie
Copy link
Member

rodlie commented Oct 19, 2025

Close, see #623

@rodlie rodlie closed this Oct 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants