PDA

View Full Version : move node with main view


zumbay
06-10-2019, 02:40 AM
Hey,

what would be the best way to link an object so it moves/translates with the direction of the main view (e.g. simulate carrying an object)?
In this example (https://docs.worldviz.com/vizard/latest/index.htm#Tutorial__Viewpoint_control.htm) the car moves with the viewpoint, but not with the head direction, which I would need.
Probably an easy solution to this, sorry!

Thanks!

Jeff
06-18-2019, 09:10 AM
Use the setReferenceFrame (https://docs.worldviz.com/vizard/latest/#commands/node3d/setReferenceFrame.htm) command with mode set to viz.RF_VIEW.