Can you create trigger boxes inside a blueprint?

Hello! I’m working on a tennis game and I need to create an a detection system to identify when the ball is able to be hit. I figured I could create multiple trigger boxes inside the blueprint for the player so when you’re in the right position relative to the ball, one button will automatically complete the best shot if you can make any at all. For example, if you are standing left to the ball (assuming the character is right handed), if you press hit while the ball is inside the forehand trigger, the ball will be returned and the forehand hit animation will play. I tried to make this work, but I couldn’t figure out how to create a trigger box component inside of a character blueprint. I was hoping I could tie the instance of the player with the trigger zones so they would move around together. Is this possible? And/or is there a better way of doing this that I’m completely oblivious to? I recently switched to Unreal after 4 years of using Unity, so I’m still figuring things out. Thank you so much!

Hi there and welcome.

You’re just looking for Box Collision components, default settings are probably good to go (but maybe check the Collision Presets, and customise if required/sensible), just cast your overlappers to the ball.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.