Problem Rotating object linked to viz.HEAD
Hi all,
I'm trying to make a compass to guide a person to their next location in a room and having the hardest time doing it. I've been creating an arrow that sits just before the main view and every second the .lookAt() method is run to turn the arrow towards the next spot. The problem I'm currently stuck with is that the arrow doesn't turn independently relative to the main view's position. Here is code using the gallery sample to highlight how the arrow is working: Code:
import viz |
Take a look at the example code in this post.
|
Thanks Jeff,
While that is really helpful (helped resolve some other issues) it didn't quite resolve my problem. The problem I'm stuck on is how to have the arrow point to the avatar while remaining independent from the main view's orientation. In the current situation, it is now independent of the main view but not pointing toward the avatar. I have a feeling I need to unlink the arrow from the avatar but then it becomes dependent on the main view's orientation again. In the post you linked to you described it as an HUD, which is essentially what I'm going for. I just want this arrow to act like a compass that is always pointing toward the avatar. Here is my integration of your post-linked code and my own: Code:
import viz |
All times are GMT -7. The time now is 11:04 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC