I have a group of character_blueprints that are parented to an empty actor.
Is there a way when I rotate the parent to make the children rotate on their pivot point instead of the parent’s pivot point?
First, if those are “child actors,” then maybe you don’t want them to actually be attached, but instead just have some property that references their “formation master” and then have them each orient themselves individually.
Second, for child components, you can switch their translation offset to be “global” instead of “relative” at which point you should be able to affect them separately.
I have no idea how to do this. So if you could provide some explanation or point me somewhere, that is explained, like a tutorial, e.g., I’ll be glad.
I’m aware of the world- instead of local, rotation, but this doesn’t help with what I want.
I’d like to have all the child components inherit the parent’s rotation but rotate around their pivot point and not around the parent’s pivot point.
So that when I turn the parent, all the child components rotate on themselves.
EDIT: Since I want the child components also to inherit the parent’s movement, I can’t just use the world location for the parent because then the child components are going to pivot on themselves but they wont follow the parent component.
Having the children just have a link to their “master” is just a property. You create a variable, make it of the right type, and set it to the value of the master you want them to reference. Then you need to do something in Tick for each of the child instances to make them take the orientation they want. If your “formation” is actually a bunch of soldiers or whatever, then that would be the appropriate way to go. If your “formation” is more of a single “thing” then that’s probably not right.
The way to set up being able to rotate each separate component on its own, is to not rotate the root of the parent, but instead put in a separate Scene node that you then link the Center to.
When you rotate, you then rotate the Center, separate from the Children, rather than rotating the whole Actor. In essence, the Actor stays in identity rotation.