Player Aim Raycast not colliding with tanks

When I aim directly at a tank, it shoots behind the tank, rather than shooting for the enemy tank location.

We’ve set the collision trace channel to Visibility, but I’m not seeing that work properly.

When I log my hit result name, I always see the landscape.

Yet the tank collision preset “PhysicsActor” SHOULD block visibility trace.
Why isn’t this actually happening?

1 Like

Seems strange. Perhaps you have visibility set somewhere else as well. Perhaps check the root actor as well as all the components.

I fixed this issue.

We had set the tanks collision to a simple box, but visibility collision i think is complex. So in the tank static mesh under “Collision Complexity” I set “Use Simple Collision as Complex” and it worked.

3 Likes

Privacy & Terms