3dcompass
Hi im trying to make a 3d compass like a flat disc that sits on the ground and rotates in place.
so far i am doing this: Code:
compass = viz.addChild('arrow.osgb') so i figure that i can set the -pitch to rotate it opposite. Code:
compasslink.setEuler([-pitch,0,-yaw]) |
If you want the compass to rotate with the viewpoint you can create a link and set the mask to orientation only. If you want the compass yaw to be the opposite of the viewpoint use the link.swapEuler command:
Code:
import viz |
All times are GMT -7. The time now is 08:21 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC