How to shake an object in simulation?

Post Reply
faseeh
Posts: 1
Joined: Tue Aug 07, 2018 8:56 am

How to shake an object in simulation?

Post 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
Post Reply