LogicArts's Recent Forum Activity

  • Thank you Biscotto, your explanation made me have the idea of ​​how to solve my problem.

  • Hi everyone, how could I check if an element exists in the array and discard it so it's not read again?

    Tagged:

  • > The force of gravity between objects can be done with:

    F=G*m1*m2/r^2

    Where

    m1 and m2 are the masses of the two objects and r is the distance between them.

    G is a constant. It comes from

    https://en.m.wikipedia.org/wiki/Newton%27s_law_of_universal_gravitation

    But since we are not dealing with real world scales we can just fudge it.

    You can try the following. Also to get the moon to orbit you just have to have the perpendicular velocity high enough.

    Global number a=0

    Global number r=0

    Global number f=0

    For each planet

    — set a to angle(moon.x, moon.y, planet.x, planet.y)

    — set r to distance(moon.x, moon.y, planet.x, planet.y)

    — set f to 100 * moon.physics.mass * planet.physics.mass/r^2

    — moon: physics: apply force (f*cos(a), f*sin(a))

    Great explanation, I had already tried to use Newton's theory but I couldn't apply it correctly, but his explanation helped me to understand the concept and to get what I needed, thanks to everyone :D

  • Exactly that, imagine that when you approach the circle it will be pulled to the center but when you touch the screen it will push outwards, but if you keep pressed, it will continue to rotate around the circle

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Hello everyone, I would like a help to know how to do realistic physics in Construct, I will give an example. I have a large circle and a small one, when the small circle approaches the big one it is pulled by gravity causing an orbit. At the same time pressing the screen applies a force to control the fall without it touching the big circle.Therefore, applying force to it is ejected out of the gravitational field and launched to another nearby circle with gravity as well. upload.wikimedia.org/wikipedia/commons/0/0d/Orbital_resonance_of_Mercury.gif

  • On the Construct 3 Addons website there could be an option that shows photos, so that we know what the addon will really do, thus saving time to install something that will not accomplish what it really wants

LogicArts's avatar

LogicArts

Member since 1 Jul, 2015

None one is following LogicArts yet!

Trophy Case

  • 9-Year Club
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

12/44
How to earn trophies