View Single Post
  #1  
Old 08-23-2010, 07:41 PM
arscarsc arscarsc is offline
Member
 
Join Date: Aug 2010
Posts: 1
Send a message via MSN to arscarsc
the difference between transform matrix and setEuler,setPosition,setScale

I don't understand what is the difference between transform matrix and setEuler,setPosition,setScale. In order to explain explicitly, we can use the following code as an exmaple

(1)import viz
viz.go()

logo = viz.add('logo.wrl')
logo.setPosition(0,0,10)
logo.setEuler([90,0,0])

(2)import viz
import vizmat
viz.go()
logo = viz.add('logo.wrl')
logo.setPosition(0,0,10)
x = vizmat.Transform()
x.makeAxisAngle(0,1,0,90)
logo.setMatrix(x)
Reply With Quote