Guest User

Untitled

a guest
Oct 18th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1.  
  2. import vizshape
  3. import viz
  4. viz.go()
  5. #Connect to flock of birds. The transmitter is placed in the center above the cave
  6.  
  7. #Bird 1 will be connected to the wiiMote. The combination
  8. #of buttons from the wiimote and the orientation of bird1 on the wiiMote will be used to
  9. #move the caveorigin around
  10. #We'll add the code for this later once we've got bird2 and tracking working properly
  11.  
  12. #Bird2 will be placed on the users head for position tracking
  13. #and to update the frustums
  14.  
  15. ascension = viz.add('ascension.dle')
  16.  
  17. birds = ascension.addFlockOfBirds(birds=1,port=4,hemisphere= ascension.HEMI_UPPER, baudRate=115200 )
  18. print birds
  19. tracker = birds[0]
  20. ground = viz.add('tut_ground.wrl') # Add ground
  21. ground.setScale(100,1,100)
  22.  
  23. ball = viz.add('ball.wrl',pos=[0,.2,6]) # Add a ball
  24.  
  25. viz.link(tracker,ball)
Add Comment
Please, Sign In to add comment