WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-09-2018, 07:27 PM
amir amir is offline
Member
 
Join Date: Apr 2018
Posts: 22
Placing Object with Optotrak

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:
HTML 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:
HTML Code:
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:
HTML Code:
opto = viz.add('optotrak.dle')
body1 = opto.getBody(1)
viz.link(body1, beam)
Thanks!
Reply With Quote
 

Tags
object on-the-fly, optotrak, tracking

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Object Collision Mattrat3000 Vizard 1 12-15-2017 01:30 AM
Getting an object location chris2307 Vizard 4 01-10-2017 04:43 AM
retrieve Object names Geoffrey Vizard 11 12-11-2009 04:26 AM
Placing Text onto another object??? Elittdogg Vizard 4 04-08-2008 02:15 PM
rotate to object jargon Vizard 1 08-08-2005 12:20 PM


All times are GMT -7. The time now is 05:41 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC