Page 1 of 1

How to shake an object in simulation?

Posted: Tue Aug 07, 2018 9:02 am
by faseeh
Hello, I am new to pybullet.

So, in my simulation I have a simple rigid object. I just want to shake it along x-axis. The way I am doing it is by applying equal and opposite external forces on the object i.e. I apply 100 units of force along x-axis and after stepping the simulation I apply -100 units. Instead of moving along + and - x-axis the object is moving along + x-axis. I don't understand why this happening. Am I doing it wrong? Can anyone guide me?

Thanks