- Home /
How to make a soccer player push the ball?
I'm wondering what is the right strategy to make a soccer player dribble.
Should I put a Box Collider on his feet and make them collide with the ball? Or should I do that by script, like:
if (ballPosition within 50cm of player) {
// Add forward force to the ball
}
Also, how do I go about the footsteps of the player, so that the forward force is applied to the ball exactly when his foot hits the ball?
Comment
For now I use a box collider as a trigger and I use AddForce(). Not sure it's the best way but that's what I'm using for now.
Your answer
![](https://koobas.hobune.stream/wayback/20220611235418im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How to create a simple soccer penalty shootout in Unity 3D? 0 Answers
Writing your name on jersey from input 1 Answer
How to give angle and direction to the ball in a penalty shootout? 0 Answers
Football - 2D 1 Answer
Goalkeeper movement. 2 Answers