Setting Collidebox Dimensions
Hello, I am trying to manually set the dimensions of an object's collidebox. As a simple test, I tried setting the dimensions of the collidebox to the size of the object's bounding box. This works for box.wrl, but with the file tree.3ds (located at https://www.stanford.edu/~tony516/tree.3DS), I get strange results. The tree on the left (which uses the default arguments for collidebox, behaves normally, but the tree on the right shoots up into the air.
Quote:
|
Please use the [code][/code] tags when posting code. It will preserve indentation which is necessary for running Python code.
Regarding your question, you need to reset the position of the tree before retrieving it's bounding box. Here is a modified version of your code: Code:
import viz, vizact |
That fixed it. Thanks!
|
All times are GMT -7. The time now is 04:21 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC