Camera Issue

Hi there,
I’ve been following your instructions and they were very good and easy to understand, the problem is I did the same thing you instructed in the video but the camera sticks to the static mesh as you can see in the screenshot:

here is another screenshot showing the player’s blueprint:

26

I don’t know what have I missed, please if you can point out the problem and how to fix, please do so.

best wishes
:smiley:

2 Likes

Probably a little late to help OP, but I was also having this issue and I found the solution.

The Spring Arm is colliding with the ground so it’s collapsing. You’ll notice that, if you raise your PlayerPawn up off the ground, the Spring Arm corrects itself.

In order to fix the issue, go into your PlayerPawn blueprint and select the Spring Arm component. Change the Spring Arm transform’s Z-position to 50.0 (or one half of the size of your PlayerPawn). This way, the Spring Arm connects with the Player Pawn at the Player Pawn’s center instead of at its base. Compile and save your blueprint, then switch back to the level editor.

In your level, your Spring Arm now functions correctly.

8 Likes

thank you so much this really helped me!

Chiming in a little late myself, but wanted to add that the spring arm has an option to ignore collisions.

2 Likes

Hey @Saleh_T_Almorran,

not sure if you’ll read this after such a long time, but maybe it will help someone with the same problem in the future. I think the camera behaves like this because the pawn is stuck in the floor. If you’ll move it up and outside the floor, the spring arm will function correctly and the camera will position itself at the end.

Hope this helps :slightly_smiling_face:

Cheers
Daniel

Edit: Ok, just saw that there were some replies I haven’t seen because of the “Bumped” comments. Never mind :sweat_smile:

Hi,
I noticed, that you did not change the Z-Transform as done in the previous video. So the camera-spring seems to have some build in functions to prevent the camera to clip through colliders. So, because you having the spring-arm-componen Transform-Location near or right on the ground, the spring arm shrinkens to that small distance.

Solution: Just go in the BP_PlayerPawn, select the spring-arm-component an pull it up along the Z-Axis. Recompile and viola, it’s done!

Greetings

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms