how to stop an object from moving after a collision
So, basically I add a force to a ball and when the ball collides with a certain object, I want the ball to stop right at the point of the collision. after it stops, I wan't to be able to add force on it and move it again and so on.
Currently, when the ball collides with a specific object, I change the ball body type to Static and it stops. before I add force to the ball I make it dynamic again.
It works, but the problem is, the ball stops after it touches the object not while it touches it. So if I apply a big force, the ball will stop after it bounces from the object. Do you know why this happens? time delay in code? Any suggestions on how to fix it?
Your answer

Follow this Question
Related Questions
onTriggerEnter returns wrong object's attribute 1 Answer
Collision not detected at slow speed 0 Answers
move pooled object on collision/trigger but keep pooling it 1 Answer
How can I make an object moving on its own bounce off walls 1 Answer
Turret not spawning fireball via instantiation in Unity 2d? 0 Answers