- Home /
Issue about ForceMode.Impulse
I'm trying to make a 2D game that contain a simple box and inside it I put a ball. I attached a physics material to the ball and gave value 1 to bouncing. Then I attached the script bellow to the ball :
function Awake(){
rigidbody.AddForce(Vector2(5,5), ForceMode.Impulse)
}
BUT, when I play the game, the ball move little bit and then it stop. Whereas I want it to move and bounce when it hit the box sides. If anyone can help me fix this i will be thankful, cuz I don't want to waste a lot of time in this problem. By the way I didn't give a rigidbody component to the ball, cuz i want it to move up first when Awake() function is called.
Your answer
![](https://koobas.hobune.stream/wayback/20220611231213im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Rigidbody2D adding force vs modifying velocity for character jump 1 Answer
2D rigidbody makes my character slowly rise 1 Answer
"Freeze Position" applied to an axis affects the bounciness of the object's collider on that axis. 0 Answers
AddTorque Isn't Working? 1 Answer
Can't change Rigidbody2D mass 1 Answer