How do I block off collision?

anonymous_user_8b77cbb9
Sun, 16 Aug 2015 06:47:55 +0000
World Creation

Say there is a brick wall with items on either side of it. I have a trigger volume (sphere) attached to my player actor. When this volume overlaps with an item, it will be picked up.

Obvious problem is that the object on the other side of the brick wall will also be picked up if the overlap occurs, as said wall does not block the player’s sphere. This problem persists even if I set it to block the sphere’s collision channel (or BlockAll).

I’m guessing that I should be sweeping for pickups instead, but I am lost on how to do it. I’m also wondering why included in OnOverlapBegin()'s parameters is a sweep boolean and a hit result–how do I use those?

Generally, what should I be doing to solve this problem?

4 posts - 3 participants