#1
|
|||
|
|||
Warnings
I have a problem with the room I have created. I modeled it after the room.wrl file that comes with vizard; however I have taken out some of the children via the remove() call.
Code:
myroom = viz.add('room.wrl') myroom.disable(viz.COLLISION) mydoor = myroom.getchild('door-FACES') screen = myroom.getchild('screen') screen.remove() cabinet = myroom.getchild('Cabinet') cabinet.remove() projector = myroom.getchild('projector') projector.remove() #explosion = viz.add('explosion1.wrl') #Hide the door door = myroom.getchild('door') door.visible(0) backwall = myroom.getchild('northwall-FACES') backwall.translate(0,0,1) backwall.scale(1.2,1,1) leftwall = myroom.getchild('westwall-FACES') leftwall.scale(1,1,1.2) floor = myroom.getchild('floor-FACES') floor.scale(1.2,1,1.2) ceiling = myroom.getchild('ceiling-FACES') ceiling.scale(1.1,1,1.4) pitlid = myroom.getchild('pitlid-FACES') pitlid.scale(1.25,1,1.3) #pitlid.remove() pit = myroom.getchild('pit-FACES') pit.remove() Thanks |
#2
|
|||
|
|||
It seems you have found one of Vizard’s parsing anomalies. It will be fixed in the next release.
|
|
|