Linear Impulse Questions

Hello, this might be a basic physics question-

If I have 4 walls with no friction and one circle with no friction- and I apply a linear impulse to the circle- why does the circle slow down over time?

Also, is it possible to just apply a force to an area on the screen instead of on a particular object?

Thank you.

Hi there, Try also setting the “bounce” property of the walls and the circle to 1, which should stop the ball from losing momentum on a collision, and also make sure the linearDamping property of the circle is set to 0. On your second question, no, you have to apply forces and impulses to objects, not to areas. But, if you store your objects in a table, you could loop through each one and, if it’s close enough to the central point where the force is coming from, apply the force to it. That way, you’ll apply a force to all of and only those objects that are close to a central point. Hope this helps. - Andrew

Hi there, Try also setting the “bounce” property of the walls and the circle to 1, which should stop the ball from losing momentum on a collision, and also make sure the linearDamping property of the circle is set to 0. On your second question, no, you have to apply forces and impulses to objects, not to areas. But, if you store your objects in a table, you could loop through each one and, if it’s close enough to the central point where the force is coming from, apply the force to it. That way, you’ll apply a force to all of and only those objects that are close to a central point. Hope this helps. - Andrew