Spring Arm with camera distance to player always zero.

So, I’m trying to create an spectator camera that is activated when the player is unpossessed (for example when interacting with an object I move the player to a position with AI move and play an animation).

But no matter how I attach the spectator camera to the player the camera rotates but the distance to the player is always zero.

I have debugged the spring arm code in the c++ class and the spring arm length is right but when it calculates the world position in the final desired location it seems to always set it to zero.

I have tried making it a child actor, also spawning it and attaching it to the unpossessed pawn, and even not attaching it and setting its position by code, but I always get the same result.

What I want to achieve is being able to unpossess the player but keep the camera movement unaffected, similar to what happens in GTA when you want to get inside a car, the player just keep moving then interacts with the object but you can still control the camera, so the camera is unaffected.

Any ideas?

Okay, so the problem was the camera collision test, I guess it just ignores colliders up to the pawn root.