How do I simulate a two direction inverted pendulum process

0 favourites
  • 3 posts
From the Asset Store
16 Direction Capx
$3 USD
40% off
Rotate & Animation for 16 Direction & Mouse Direction
  • 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

  • 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.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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)