View Single Post
  #2  
Old 01-28-2010, 11:49 AM
Josh Josh is offline
Member
 
Join Date: Jan 2010
Posts: 63
So far I got it to work using the following code:

Code:
mirrorsurface = viz.addTexQuad()
mirrorsurface.scale(.3,.25,.6)
mirrorsurface.setPosition(0,1.8,1.2)
mirrorsurfacerotation = [0,0,0] #rotation around the Z,Y,X axes #changed from [90,0,0]
mirrorsurface.rotate(mirrorsurfacerotation)
m = viz.Matrix()
m.setPosition(mirrorsurface.getPosition(viz.ABS_GLOBAL))
m.setEuler(mirrorsurfacerotation[0]-180,-mirrorsurfacerotation[1], mirrorsurfacerotation[2]) #Z,X,Y
addMirror(mirrorsurface,m)
But I'd like the mirror to be on the red textured block of the world itself... How could I achieve this?
Reply With Quote