I’m making a skateboarding game, and I need to create animations for both stances (regular and goofy). I have some animations for the regular stance, but I don’t want to reanimate them for the goofy stance. Is there any way to mirror the regular animations to the goofy stance?
You can, but you have to flip the character’s joints or body parts on the X-axis using scripts, at least that’s how I’ve always done it.
To mirror an animation you can create a script to go through each Key Frame of your animation and adjust each Pose Instance. To achieve this you need to save the animation locally and look for the local save in: [game.ServerStorage.RBX_ANIMSAVES].
Then you need to loop through each Key Frame and get all of its descendants of the type: [Pose] mirror their CFrame and if their name begins with Left or Right change it to have the opposite.
I found a plugin to do this, but it wasn’t working and seemed to be outdated so I wrote a new one.
Mirror Animation - Creator Store
To mirror a CFrame you can use the CFrame.lookAlong() function with the respective Vector3 values of [cframe.Position, cframe.LookVector, cframe.UpVector] mirrored along the X-Axis
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.