Thread: Linking Objects
View Single Post
  #2  
Old 04-20-2012, 06:07 AM
Frank Verberne Frank Verberne is offline
Member
 
Join Date: Mar 2008
Location: Netherlands
Posts: 148
When it comes to linking objects in vizard, you have to use the commands link.preEuler([yaw,pitch,roll]) and link.preTrans([x,y,z]) functions after creating the link instead of vehicle0.setEuler and vehicle0.setPosition before creating the link. So try this:
Code:
link = viz.link(vehicle0, roadstrip, priority=1, offset = (0, -1.2, -0.1))
link.preEuler([90,0,0])
link.preTrans(outofview)
Reply With Quote