How do I simulate a two direction inverted pendulum process

Get help using Construct 2

Post » Thu Aug 03, 2017 5:25 pm

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
Posts: 4
Reputation: 158

Post » Thu Aug 03, 2017 10:59 pm

First read this, plz.

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.
Posts: 2,493
Reputation: 21,450

Post » Thu Aug 03, 2017 11:25 pm

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.
Posts: 5,591
Reputation: 85,520

Return to How do I....?

Who is online

Users browsing this forum: hendi544, keithtammy and 7 guests