I have a Box Component located above the head of my character. When my character releases the Crouch Key, I want the Box Component to detect if it’s colliding with another object, and stop the character from coming out of a Crouch State.
So far, my Box Component only partially works. It can detect the capsule collider of my character using GetOverlappingActors() and then checking if Index 0 is valid, but if my character stands underneath a static cube the Box Component isn’t returning anything. Is this because it’s a child of the Capsule Collider of my Character? I’m pretty new to Unreal, so any pointers or suggestions would be very much appreciated.