[Help] Physics - Impulse / Force / Linear Velocity

Hello!

I have a question regarding physics in the corona.

I have a X image that is standing on the ground.

I wonder, using physical (impulse, linear velocity or applying force) which value should I use for it reaches a maximum height in the axis Y.

For example:

The X image is set (100, 100) and I would like it to position (100, 0), ie I apply a negative force in the Y axis, but how to calculate the exact value of this force so that it reaches such position?

THANK YOU!

Hi @guilherme.casassanta,

There is no specific “calculation” when applying force/impulse to know that it will reach a certain Y position. The mass of the object will affect how far it goes upward, just like if you kicked a small rock vs. a giant boulder with the same amount of force. Most likely, you will just need to experiment with different force/impulse values and see which amount gets the object to around the Y value you desire.

Also, note that setting linear velocity is a little different. That will start the object moving in a constant, steady direction (unless you have linear damping applied or some such thing). If you want to mimic a “jumping” type of action, I suggest applying force or impulse.

Best regards,

Brent

Hi @guilherme.casassanta,

There is no specific “calculation” when applying force/impulse to know that it will reach a certain Y position. The mass of the object will affect how far it goes upward, just like if you kicked a small rock vs. a giant boulder with the same amount of force. Most likely, you will just need to experiment with different force/impulse values and see which amount gets the object to around the Y value you desire.

Also, note that setting linear velocity is a little different. That will start the object moving in a constant, steady direction (unless you have linear damping applied or some such thing). If you want to mimic a “jumping” type of action, I suggest applying force or impulse.

Best regards,

Brent