Page 1 of 1

use another main.cpp communicate with Bullet

Posted: Mon May 01, 2017 11:39 pm
by RolandZhu
Hi,

I'm now working on a research project which requires me to use another main.cpp communicate with Bullet. I have already compiled the code with Xcode and get an App_ExampleBrowser which I can use the mouse to click and drag the rope I designed. And the next step I want to do is run another main.cpp simultaneously which require a matrix stands for the current state of the rope from the App_ExampleBrowser as an input and output another matrix as a force to the rope in Bullet. However, I have no idea about how to do this, may I ask for a piece of advice about how to achieve this? And also how to use another main.cpp control the Bullet. I have tried to generate a button which will read the matrix from a .txt and write the state matrix to the same .txt but it's too slow.

Thank you.