View Single Post
Old 08-03-2015, 07:24 AM
Erikvdb Erikvdb is offline
Join Date: May 2013
Posts: 63
If you want the doors to open in a linear fashion, you could easily just export the doors as separate objects and apply a vizact.moveTo.

Here's a snippet of code I used for a recent project:
import viz
import vizact

obj_door = viz.add('door.osgb',viz.WORLD,1)

def onDoorOpen():
    open = vizact.moveTo([1.5,0,0],time=0.9)
Reply With Quote