amir
08-09-2018, 07:27 PM
For our study, people will walk on a balance beam. I want to stick an Optotrak rigid body onto the beam so that we can have it exactly matched in space with our virtual environment.
I'm currently adding the beam into the scene at the origin with the following code:
# Add balance beam
beam = viz.add('beam.osgb')
beam.setPosition([0,0,0])
And adding the following for Optotrak to send motion data for the HMD:
opto = viz.add('optotrak.dle')
body = opto.getBody(0)
viz.link(body, viz.MainView)
How can I associate a second Optotrak rigid body with the virtual balance beam? My thoughts are to add:
opto = viz.add('optotrak.dle')
body1 = opto.getBody(1)
viz.link(body1, beam)
Thanks!
I'm currently adding the beam into the scene at the origin with the following code:
# Add balance beam
beam = viz.add('beam.osgb')
beam.setPosition([0,0,0])
And adding the following for Optotrak to send motion data for the HMD:
opto = viz.add('optotrak.dle')
body = opto.getBody(0)
viz.link(body, viz.MainView)
How can I associate a second Optotrak rigid body with the virtual balance beam? My thoughts are to add:
opto = viz.add('optotrak.dle')
body1 = opto.getBody(1)
viz.link(body1, beam)
Thanks!