Offset position of link/attached object
How do you change the relative offset of an attached object when using viz.link? Is this possible? setPosition doesn't work and there doesn't seem to be a set relative position function. Also need the rotation as well.
|
|
Quote:
http://pastebin.com/GDFTYf2d This code is contained within my function UpdateView and gets updated with the following: vizact.ontimer(0,UpdateView) Now this code works, however, it is very jittery. It is not smooth at all. And if I only move the mouse a little bit, it wont cause the player to rotate. The way Im doing this feels very "hacky", but I'm not sure how else to do it. I haven't any example code for this kind of control scheme. Is there a better way to accomplish this? To me it seems like the UpdateView function is not being called every frame which is the cause of the jitteryness, but I am not entirely sure. |
One of the built-in cameras from the vizcam library may set up the navigation style you would like:
Code:
import viz |
All times are GMT -7. The time now is 03:05 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC