Components moving away from their position

the first thing I’d check is that your camera compontnt is actually being used… UE4 has a habit of spawning an extra free camera in the level… it’s easy to check, when you launch scroll through the inspector window to see which camera is being used. Or else in your Player Char BP or Player Controller BP just Set View Target With Blend and set the Target to Player

The camera component is being used. I managed to get it back in place by moving it from the level. I don’t know what causes this though. I already saw a similar situation with my Enemy character, the sphere collisions I had around it would also move to 0 unless I keep them in their place using the Tick

You might have a large invisible object in your level, with collision turned on… which is pushing everything with collision about the place… sounds weird… but I’ve seen it happen…

This is a difficult one to explain with words.

On the right there’s my player capsule, but the camera and spotlight “broke” and moved away from it to 0,0,0 (or almost 0,0,0). During runtime I do have control over my character, but the camera stays there.

Here’s the components window:

261886-capture2.png

This also happens with another character. It has 3 sphere colissions that are supposed to be on a fixed relative position to the mesh, but I have to update their relative position on Tick() or they’ll move away too. I’m using UE 4.20.3

EDIT: I forgot to mention that on another maps everything works as intended

Not the case, I was able to move it back to place in the level editor and it works as intended. The level is basically empty since it’s a test level. I’m just wondering what causes it, since it also happened with the other character on another map

bizarrely interesting… do make a comment if you ever figure out why :smiley: