I’m developing a very simple game for kids where objects bounce one with each other and with borders of the screen, like in a top view billiard table. So far I have only the right border and I move the objects like this:
msg.post("#collisionobject", “apply_force”, {force = vmath.vector3(28, 0, 0), position = go.get_world_position()})
The mass of the bouncig objects is 0.009, restitution is 1, friction is 0, collision shape Box.
The right border is dynamic, has mass 1000, restitution 1, friction 0, collision shape Box.
The problem I’m facing is that the objects move a little too fast, but to make them slower I have to either increase their mass (for example 0.01 instead of 0.009) or decrease the force I apply them, (for example 25 instead of 28).
If I do one of these changes the initial speed is correct, but the objects get stuck to the border when they touch it instead of bouncing.
What can I do?