Question by
Greenie · Sep 28, 2016 at 03:33 PM ·
physicsrigidbodysimulation
Virtual accelerometer/gyro
Hey there,
I'm working on a university project using the arduino system with a 6 axis gyro/accelerometer involving measuring a balls acceleration. We were thinking of using unity to create a simulation of the data we may get out of this device while we wait for it to ship.
I've made a simple ball that can track its rotation and acceleration, however am having an issue with the acceleration part. Unity's rigidbody velocity shows how it is moving relative to world coordinates and not its own local coordinates. The issue here is when the ball rotates in real life the accelerometer will have skewed data due to its spin (as what was once "up" is suddenly down) and we need to simulate this in unity.
Cheers for your help!
Comment