Keep animated character in place and have surrounding objects move instead

I’m still pretty new to UE but I have a client that wants an animation of a tennis player running around to actually lock on the tennis player and have the scene move around them instead. The easy solution would be to lock the camera to the player but here that is not an option because it will be in VR and the action is locked onto a coffee table as if that table is kind of a volumetric hologram space.

I don’t really care if the solution is a blueprint or C++ script as long as it functions. Ultimately I’m going to also have a circular ground plane shift around its UVs as if it is following the action as well (instead of attempt to animate a boolean which may or may not even be possible - I’m coming from Maya which has a lot more modeling capabilities), but I’ve figured out how to animate UVs already so I think whatever solution will work for objects can be plugged into those parameter nodes just as easily.

Any help would be much appreciated - thanks!

Hello @pmorizzle welcome to the forums! I think the simplest way to accomplish say a hologram tennis court shifting around a player would be to make an actor component that checks player input and uses that to move a floating pawn movement component around and then just slap that component on the objects “in” the simulation. Now you’d still have to disable player movement on their actual player like I didn’t here. But this way you can keep acceleration and all that jazz without extra maths. That said, this method is in Tick so it’s not best practice, and you’d have to get player state if you’re doing multiplayer. Though this is a quick way to get the stuff moving at least, and be able to put that on any object you want.
UnrealEditor_2022-08-09_00-00-44


UnrealEditor_2022-08-09_00-30-35

2 Likes

I’ve been too busy to respond until now but yes this is perfect!! Thanks so much for the quick solution :smiley:

1 Like