Collision doesn't work when GameplayCameraSystem.Enable is enabled in city sample

In the Game animation sample, there is a Function(SetupCamera). When this is executed, the character collision does not work and the character is buried in the ground in the city sample map.

How can I use the Gameplay Camera in the city sample?

placed another actor and checked to see if a collision would occur, and found that it did not.

I found the cause. It seems that if you use Gameplay Camera and move with Set Actor Location, you will pass through the character.

Sounds like the issue comes from Set actor location ignoring collisions. Use Add movement input or Set anchor location with sweep instead.

1 Like

It was a mistake on my part. The problem still occurs.

First, I warp onto the road to check if it can pass through. However, this time I checked in another location, and since it didn’t pass through, I concluded that the warp was the cause.

Even if the road, car, and object are the same, there are some places where you can pass through and some where you can’t. This time, it seems that I just happened to hit a place where it couldn’t be passed through.
The camera conditions may affect whether or not you can pass through. The same mesh is used.

If you switch this to a normal camera, i.e. stop using GameplayCamera, collisions will work normally again.

It seems like the value of cast to PlayerController is changing.