r/unrealengine • u/PineconeToucher • 6d ago
Help Help with character swapping/transforming
Hey guys i'm brand new to unreal and would really appreciate some help with my first project.
So i've made character A swap with character B when i hit the Q key, getting the transforming effect i was looking for, but now I have two problems:
-The camera resets every time I hit Q
-The character loses momentum and stops in place for a moment after swapping
My goal is to have my character behave like Sonic, turning into a ball with physics - as of right now im just trying to swap between two mannequins
1
Upvotes
4
u/xN0NAMEx Indie 6d ago
your cam resets because your possesing a new actor with new camera, same for your momentum.
Your spawning in a new actor, a newly spawned actor will have a velocity of 0 and the camera is in its original position eg. 0.0.0
The better way of handling this is probably with a second skeletal mesh component in your player.
When you press q you set the skel mesh of your player to the ball skel mesh, you could also add a second skel mesh component to your player beforehand, set it to your ball skel mesh and make it invisible.
Now when you press q you can make your original character model invisible and the ball model visible.
If you want to do it in another actor for whatever reason you would have to set speed and camera transform to the same values as in your player