1. Announcing Mekorama on the Web!

    Now anyone can play levels from the forum online, with one click!

    Dismiss Notice
  2. Psst! If you're new here, welcome! Please visit these pages first for information about the forum and Mekorama:

    Welcome! ¡Bienvenido! Selamat datang! Добро пожаловать! Willkommen!
    and
    Everything you want to know about Mekorama

    Dismiss Notice

Forces Investigating mass and inertia

Discussion in 'Game Behaviours' started by QuantumForce, Jan 22, 2017.

  1. QuantumForce

    QuantumForce Active Member

    Messages:
    37
    Levels:
    3
    Albums:
    1
    Likes Received:
    113
    Joined:
    Oct 19, 2016
    Many of my recent ideas involve creating large draggable mechanisms. I've found that in some situations the game seems quite sensitive to the mass distribution of the blocks. For instance, there is a quite notable preference for the blocks-down orientation in the following two motor system, but less when only one motor is included.

    mekorama.png

    Has anyone investigated the effects of mass in this physics engine?

    Open questions:
    • Do all blocks have the same mass?
    • How is the momentum of large assemblies calculated? Is it just the center of mass?
    • Is angular momentum factored in for motors?
    • Can we manipulate the strength that a motor has to lock in to one of the four orientations?
     
    meko, nGord and cpw like this.
  2. richardfu_

    richardfu_ Retired Moderator and Featured Levels Manager

    Messages:
    62
    Levels:
    110
    Albums:
    3
    Likes Received:
    1,497
    Joined:
    Jul 20, 2016
    Check this card for some demonstrations:

    [​IMG]

    1. To answer your first question, I think all blocks have the same mass no matter how they look. See the stick that looks unbalanced but is actually balanced.

    2. I don't think you can lock the motor in a practical way since the motor is very strong. However the mass does have an impact. When you rotate the block to the side, it would fall downward and then pull back up.

    3. The slider is much weaker than the motor. Just attach a bunch of blocks and it can't rise anymore.
     
  3. Frenzies

    Frenzies Administrator Staff Member

    Messages:
    355
    Levels:
    18
    Albums:
    5
    Likes Received:
    1,215
    Joined:
    Jun 15, 2016
    Yes, that is true in most cases, but that's where the forcefield effect comes in, based on my observations. See the card below.

    Screenshot_2017-01-24-14-14-29_com.martinmagni.mekorama.png
    I tried putting B on the other side, too, and tested it in numerous ways, and it seems it always tips to the thicker side. You may have to wait a while in this example. I have some more examples in my level collection.

    EDIT: Now I'm not so sure. I did some more tests and it seemed to always tip in the same direction. :oops:
     
    Last edited: Jan 24, 2017
    QuantumForce, cpw and richardfu_ like this.
  4. QuantumForce

    QuantumForce Active Member

    Messages:
    37
    Levels:
    3
    Albums:
    1
    Likes Received:
    113
    Joined:
    Oct 19, 2016
    Thanks for the results! The lever setup makes a good way to test. Its too bad they are all the same mass. That could have led to some new mechanisms.

    In my tests with B, I always see the lever tip up on the side with B. This could be explained by B's collision box extending slightly outward due to his limbs, so he exerts a slight upward force around him.
     
  5. Frenzies

    Frenzies Administrator Staff Member

    Messages:
    355
    Levels:
    18
    Albums:
    5
    Likes Received:
    1,215
    Joined:
    Jun 15, 2016
    Really? I completed my tests and concluded that they all get pulled into a certain point. See the image below (I marked the point with the tower made out of rails).

    IMG_2036.PNG
    Note that some configurations triggered by the forcefield can be set to a certain direction, and won't move towards the point unless set in that direction. But this only happens because the object tilts to the direction it is set to due to a careful balance of weight that makes it lean without falling (like the tree in my Deserted level).
     
  6. QuantumForce

    QuantumForce Active Member

    Messages:
    37
    Levels:
    3
    Albums:
    1
    Likes Received:
    113
    Joined:
    Oct 19, 2016
    Interesting, this is very different for me. So for you, all the objects tilt towards the camera (southeast). Then when B bumps into them they tip the rest of the way. I see all of them tilted to the left (southwest). I've tried reproducing your level myself, and I get even two other different directions depending on whether it's in the editor or imported as a card. Maybe this is device specific? I could see it depending on numeric instabilities in the floating point unit.
     
    yohbk likes this.
  7. yohbk

    yohbk New Member

    Messages:
    2
    Likes Received:
    4
    Joined:
    Feb 7, 2017
    Interesting...
    now it's more like scientific work than a mere puzzle game. hahaha.... :D
    but it's fine, i really enjoy all of your research.:)
    fascinating.
     
    QuantumForce, Gepeto and cpw like this.
  8. Gepeto

    Gepeto MekoStudio Architect Staff Member

    Messages:
    453
    Levels:
    48
    Albums:
    1
    Likes Received:
    2,504
    Joined:
    Jul 7, 2016
    QuantumForce likes this.
  9. yohbk

    yohbk New Member

    Messages:
    2
    Likes Received:
    4
    Joined:
    Feb 7, 2017
    I see... no wonder it's become more scientific. :D
    thank you for allow me to join here.
     

Share This Page