Is it possible to stretch an object? How?
Hi, I have been studying the Vizard engine for quite a while now, but I can't understand how to strech objects through the code.
Imagine a 3D Chart Map, where the chart bars are objects and the information is presented on a texturized wall from where the bars pop into the 3D environment. How can I strech these bars? I tried to use setScale but it also impacts the distance between the object and the wall, so I need to be able to control set one of its dimensions without using that command. Any ideas? Thank you very much. |
When you scale the bar it's center will remain in the same position. You could either change the bar's center to be at the end that will touch the wall or re-position the bar after scaling it. The following code moves an object's center so it will stay aligned with the ground when scaled:
Code:
import viz |
Thank you, Jeff. It works.
|
All times are GMT -7. The time now is 09:50 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC