Hello people, I’m new to UE4 and I’ve been trying to create a 3D pong game.
When the ball is hit from one side (player’s side), I would like the computer-driven opponent to follow the ball and fight back from the other side of the field.
Instead of doing some crude coordinate lerping and track the balls coordinates (x,y,z), I would like to implement a little AIPawn that can track the ball position and move towards it.
However, I’m a little confused about how to reference objects in non-level-blueprints. In the image attached, I would like to replace
Get Player Character with my
ball static mesh, but I can’t just reference it in this blueprint. What is the best thing to do?