Why does tut_cone move on its own?
I'm trying to make a simulation of light coming from a laser diode (it's generally a cone shape). I figured I could use the tut_cone model and change its domensions. But when I change the cone's scale the cone will move somewhere else. Why won't it stay still?
Below is a program that illustrates my problem. The cone is supposed to be in front of the on-the-fly object there. The slider is only supposed to change the scale of the bottom of the cone (the circle). Code:
import viz |
The geometry in that model is not centered about the origin, therefore applying a scale will inherently affect its position.
I suggest using the vizshape module to create a cone. Example: Code:
import vizshape |
All times are GMT -7. The time now is 06:09 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC