So I am making an NPC that you can play against in a game I am making called Bubble Soccer Royal. But one thing I am not quite sure where or how exactly to start is making it so that when the NPC goes running over the ball (aka hit it) that it makes sure that it turns/moves to a line itself with the net so that it can run it right into the net. So far I just have it use a BodyPosition as Physics to move the Bubble to the ball.
This is NOT a cutscene nor is it something where AI just moves a ball. The AI has to move WITH the ball into the net meaning turning to make sure both the ball and the way the AI moves will head right into the net
I want the character to angle itself so that when it moves forward it would hit the ball into the net. Without making some animation or the ball do it by itself.
I think I understand your question, so you want to make a cutscene or something basically when the npc faces the goal?, If I’m correct then here is a script I found on the forum and adjusted:
Okay I must make this clear. This is NOT a cutscene nor is it something where AI just moves a ball. The AI has to move WITH the ball into the net meaning turning to make sure both the ball and the way the AI moves will head right into the net.