[prev in list] [next in list] [prev in thread] [next in thread]
List: osflash-sandy
Subject: [Sandy] [sandy commit] r199 -
From: codesite-noreply () google ! com (codesite-noreply () google ! com)
Date: 2007-04-27 15:04:26
Message-ID: c09ffb5135042f19738c475926fb0 () google ! com
[Download RAW message or body]
Author: baepstein
Date: Fri Apr 27 08:04:10 2007
New Revision: 199
Modified:
trunk/sandy/as2/trunk/sources/sandy/view/Camera3D.as
Log:
Updated Camera3D.as to properly store roll, pitch (tilt), and yaw (pan)
Modified: trunk/sandy/as2/trunk/sources/sandy/view/Camera3D.as
==============================================================================
--- trunk/sandy/as2/trunk/sources/sandy/view/Camera3D.as (original)
+++ trunk/sandy/as2/trunk/sources/sandy/view/Camera3D.as Fri Apr 27 08:04:10 2007
@@ -270,6 +270,7 @@
//if( _nTilt == -90 || _nTilt == 90 ) return;
_compiled = false;
nAngle = (nAngle + 360)%360;
+ _nTilt = nAngle;
var m:Matrix4 = Matrix4Math.axisRotation ( _vSide.x, _vSide.y, _vSide.z, nAngle );
Matrix4Math.vectorMult3x3( m, _vUp);
Matrix4Math.vectorMult3x3( m, _vOut);
@@ -285,6 +286,7 @@
{
_compiled = false;
nAngle = (nAngle + 360)%360;
+ _nYaw = nAngle;
var m:Matrix4 = Matrix4Math.axisRotation ( _vUp.x, _vUp.y, _vUp.z, nAngle );
Matrix4Math.vectorMult3x3( m, _vSide);
Matrix4Math.vectorMult3x3( m, _vOut);
@@ -302,6 +304,7 @@
{
_compiled = false;
nAngle = (nAngle + 360)%360;
+ _nRoll = nAngle;
var m:Matrix4 = Matrix4Math.axisRotation ( _vOut.x, _vOut.y, _vOut.z, nAngle );
Matrix4Math.vectorMult3x3( m, _vSide);
Matrix4Math.vectorMult3x3( m, _vUp);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic