#1
|
|||
|
|||
Bug in setPosition
I found a bug in the setPosition of Node3D (VizNode)
Code:
import vizshape, viz viz.go() vizshape.addGrid() group1 = viz.addGroup() group1.setPosition(3.0, 0.0, 10.0) cube1 = vizshape.addCube(3.0, parent=group1) cube1.setPosition(0.0,0.0,10.0, mode=viz.ABS_GLOBAL) cube1.alpha(0.5) group2 = viz.addGroup() group2.setPosition(3.0, 0.0, 10.0) cube2 = vizshape.addCube(2.0, color = (1.0,0.0,0.0), parent=group2) cube2.setPosition((0.0,0.0,10.0), mode = viz.ABS_GLOBAL) |
#2
|
|||
|
|||
If you change:
Code:
cube2.setPosition((0.0,0.0,10.0), mode = viz.ABS_GLOBAL) Code:
cube2.setPosition(0.0,0.0,10.0, mode = viz.ABS_GLOBAL) |
#3
|
|||
|
|||
You would expect it to just work. Took me hours to figure out that this was the cause of my problem. I don't know on how many other locations in my code I might have used this construction.
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
about setPosition | xingxing | Vizard | 2 | 02-20-2008 10:32 AM |