@anton_s said:
I assume your speaking of the accelerometer that returns its own acceleration along three axis, am I right?
The main problem were facing now is how to get accelerometer data into SketchUp?
I don't know about Macs, but on PC we use Microsoft Windows API, [Raw Input](http://msdn.microsoft.com/en-us/library/windows/desktop/ms645536(v).The next question is using this accelerator data to control velocity of the particular body in MSPhysics. Of course, accelerometer data may be used for other purposes, but I assume you want to control body velocity with it. For instance, you move accelerometer to the right, the body moves to right as well.
I'm sorry to say, but current version (0.1.0) of MSPhysics doesn't have a scripting feature, so we'll write the code for SketchyPhysics. I assume you have sketchy physics 3.2 installed on SketchUp 7 or on SketchUp 8.
Before I attempt to write a script, I want you to verify what kind of accelerometer you're using. Perhaps a url to where you bought it would be helpful.
My accelerometer is a MPU9150 which is actually an IMU. My idea is, having a board with the MPU9150 and a Bluetooth Low Energy module (CC5541) that sends the values to a USB/BLE dongle (CC2540). The dongle is recognized by Windows as a Serial Port (COMxx). We master the Bluetooth component but we can’t get the accelerometer data into Sketchcup.
We’ve made a DLL in C# that is able to get data from the IMU (via Bluetooth) and compute a x,y,z position from both accelerometer and gyroscope data. We would like to use this x,y,z coordinates to move a shape inside Sketchcup.
My goal is that Sketchup, with these IMU values, make a movement on an object.