I have a question about link data
Hi.
Now I finally solve my problem(I posted before). But only one thing make me confused. When I use link, source data is different from destination data. Uh, for example.... Code:
sensor=viz.addSensor('patriot') Do you have any idea for this? Thank you very much. |
Link objects do not get updated until later on in the update cycle. There are a few ways to deal with this.
1) Register your callback with a priority greater than viz.PRIORITY_LINKS 2) Manually update the link before retrieving the values from the bone: Code:
link.update() Code:
print link.getEuler() |
Hi, farshizzo.
Thank you for your advice. I didn't know "viz.PRIORITY_LINKS". I'll try the manually update method you taught me. Thank you again. |
All times are GMT -7. The time now is 02:39 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC