Need Help to Output Delta Displacements
Posted: Fri Feb 19, 2016 4:11 pm
Hi,
I'm hoping someone can help me out with a simple coding task. I want to stream the displacement data from the Motive software from a couple of rigid bodies, but I want to display the delta displacments from their initial positions. I basically want to zero out the initial positions so that I only see the deltas when the targets move.
I'm trying to use the NatNetSDK WinFormsSample application code to do this, but am having some trouble (pardon me, I'm a beginner when it comes to coding). I'm trying to capture the initial value of the rigid body position at rb.x, rb.y, and rb,z, and then simply minus this value from the outputed number in the display. Does anyone know how to capture those initial position values? It doesn't seem to be working when I simply equate a temp variable to the rb.x/y/z floats.
Any quick help would be much appreciated.
I'm hoping someone can help me out with a simple coding task. I want to stream the displacement data from the Motive software from a couple of rigid bodies, but I want to display the delta displacments from their initial positions. I basically want to zero out the initial positions so that I only see the deltas when the targets move.
I'm trying to use the NatNetSDK WinFormsSample application code to do this, but am having some trouble (pardon me, I'm a beginner when it comes to coding). I'm trying to capture the initial value of the rigid body position at rb.x, rb.y, and rb,z, and then simply minus this value from the outputed number in the display. Does anyone know how to capture those initial position values? It doesn't seem to be working when I simply equate a temp variable to the rb.x/y/z floats.
Any quick help would be much appreciated.