Magnus Ewald <[EMAIL PROTECTED]> wrote: > why does the camera stop rotating when it reaches 90 degrees, when trying to > get this script to work ??? > > -- > member(1).camera[1].transform.rotation=member(1).camera[1].transform.rotatio > n -vector( 0, 1, 0)
Hi Magnus, Director 8.5 has its own special way* of dealing with rotation around the y-axis. When you pass between 90� and 270�, the rotation is executed by flipping around both the x- and z-axes, and maintaining the y- rotation between -90� and +90�. The solution is to use the .rotate() method instead: member(1).camera[1].transform.rotate( 0, -1, 0) Director will perform the rotation as expected, regardless of the resulting rotation vector. Cheers, James * You may prefer to use a three-letter word for this. [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]) Lingo-L is for learning and helping with programming Lingo. Thanks!]
