How do I simulate a two direction inverted pendulum process

0 favourites
  • 3 posts
From the Asset Store
This is a Dungeon Master tool & the 1st of 12 Combat Engines from the Building Combat Engines for Browser Games workshop
  • Simply put, i want to create a process like trying to balance a vertical stick on your palm .. that sought of thing. You'd have to move your palm in a front and back motion to keep the stick vertically balanced because due to gravity it will try to fall over. So I'm trying to use two platforms to simulate this. one movable block and another one on it that follows the movement of the block below to attain balance against gravity. Trying to use two main objects: one sprite with a platform property that can be moved left or right and another that stays on top of it and is being balanced. Please I need help

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • First read this, plz.

    http://www.explainthatstuff.com/center-of-gravity.html

    To balance/unbalance, an object needs to able to rotate/have a torque.

    Platform behavior has no rotate mechanics, hence it is not suitable.

    You can do this with Physics, although i dont know how at this moment.

    You can also code the whole mechanic yourself, kinda simulating it.

  • You probably can do it with a few revolute joints to connect the stick to the platform and two wheels to the platform.

    Then you'd need two keyboard events to apply horizontal forces to the platform. Add another physics object as the ground and tweak the amount of force applied by the events and you should be set.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)