Physics Formula needed for applyLinearImpulse

Hi,

I’m stuck in a physics based problem. Please open the attached image and then I will explain my problem:

The issue is my monkey touches the left side spring which pulls the monkey towards right side spring. It works well in the small devices but when I test this in the big screen devices like iPad, it doesn’t reach to the right side spring. May be, I have to use some mathematical equation for this.

Please let me know how to solve this problem.

Thanks in advance

It looks like your screen dimensions are different, which would mean the monkey has further to travel. I assume that you’re placing the physics objects relative to the edges of the screen, which would make sense. The problem there is that the dimensions of your game level will change. Try placing them relative to each other and see if that helps. Also, your larger image arrow seems to indicate that if the spring were in the same place relative to the smaller image, the monkey would hit the second spring.

Btw, I love your artwork. Is that your own or do you have an artist?

It looks like your screen dimensions are different, which would mean the monkey has further to travel. I assume that you’re placing the physics objects relative to the edges of the screen, which would make sense. The problem there is that the dimensions of your game level will change. Try placing them relative to each other and see if that helps. Also, your larger image arrow seems to indicate that if the spring were in the same place relative to the smaller image, the monkey would hit the second spring.

Btw, I love your artwork. Is that your own or do you have an artist?