I am trying to make a football game and there's that issue that's bothering me:
●Problem: The ball just keeps rolling on the floor no matter how hight the friction value is and it isn't practical for dribbling.
●Solution: I applied a script (js) to the ball stating that its coordinates are very close to the player ( the player is a `Transform` variable ). That way the ball would follow the player wherever he goes.
●Other problem: I applied another script to the ball: when the gamer presses the X key `Input.GetKeyDown(KeyCode.X)`, a force is applied to the ball `GetComponent.().AddForce(Vector3.forward*shotPower);` but the force couldn't be applied because an other script is telling the ball to follow the player's coordinates
I want the ball not to roll forever on the floor but on the other end, I don't want the ball to follow a script dictating its coordinates.
I hope my question is clear. Hope to hear answers soon
Thank you for your time, Joe :-)
PS: I only know Javascript
↧