- Home /
Why my ball is slowing after contact with other object?
I'm trying to do a game like pong, I have pattern, walls and ball. Pattern and walls material is "none" and ball have a "bouncy" from "Standard Assets". "Use Gravity" is uncheked for "ball" and this is script:
function Awake() {
rigidbody.AddForce (600 ,600 ,0 , ForceMode.Impulse);
}
After contact with walls or patter ball is slower and slower, I don't know why :/
PS. Sorry for my English ;)
Do you have any friction for the ball's material? If so, that might be the reason.
@robertbu I added this line and it work :) @Immanuel Scholz After set friction for 0 nothing changed.
Thank you for respond.
Answer by robertbu · Jun 09, 2013 at 08:05 PM
I've never seen this happen, and in a quick test, I could not reproduce it. You could work around the problem by setting the velocity explicitly in Update();
rigidbody.velocity = rigidbody.velocity.normalized * speed;
You will still need to give it an initial force or velocity.