Collision problem

I worked on collision last week and were gone for a week. Now when my character is spawned it’s slightly moved to the right or left while in the walking mode and camera rig that is setup like this every tick switches. It doesn’t work as it did before. What was the thing I did to cause this?

Hey @Mando_2700!

Let’s walk through what this code does:

  1. Get Actor location and save the Z value (this is not used elsewhere in this function)
  2. Spawn a camera rig at world origin (based on the spawn transform)
  3. Set the view target to be the newly spawned Camera Rig.

Without more context there’s not anything else we can do here. :slight_smile: If you’re wanting the actor Z to be the camera’s Z you will need to use that, maybe show us where “Setup Camera” is being called! It definitely shouldn’t be on any sort of tick, though.

Let us know! :slight_smile:

1 Like

This is called in Tick. It worked before and still does. However, there is an error. It seems to be empty every 2nd tick. The problem occured simultaneously with the other one. Character is moved to the left on spawn. The player start is in the middle and as you can see he’s not.