Skip to content

Commit

Permalink
fix skin get transform bug
Browse files Browse the repository at this point in the history
  • Loading branch information
muzerly committed Sep 2, 2010
1 parent 9a8fba5 commit c7f4a65
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 54 deletions.
36 changes: 18 additions & 18 deletions fp10/src/jiglib/plugin/away3d/Away3dMesh.as
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,25 @@ package jiglib.plugin.away3d {
}

public function get transform():Matrix3D {
var tr:Matrix3D = new Matrix3D();
tr.rawData[0] = _mesh.transform.sxx;
tr.rawData[4] = _mesh.transform.sxy;
tr.rawData[8] = _mesh.transform.sxz;
tr.rawData[12] = _mesh.transform.tx;
tr.rawData[1] = _mesh.transform.syx;
tr.rawData[5] = _mesh.transform.syy;
tr.rawData[9] = _mesh.transform.syz;
tr.rawData[13] = _mesh.transform.ty;
tr.rawData[2] = _mesh.transform.szx;
tr.rawData[6] = _mesh.transform.szy;
tr.rawData[10] = _mesh.transform.szz;
tr.rawData[14] = _mesh.transform.tz;
tr.rawData[3] = _mesh.transform.swx;
tr.rawData[7] = _mesh.transform.swy;
tr.rawData[11] = _mesh.transform.swz;
tr.rawData[15] = _mesh.transform.tw;
var rawData:Vector.<Number> = new Vector.<Number>(16, true);
rawData[0] = _mesh.transform.sxx;
rawData[4] = _mesh.transform.sxy;
rawData[8] = _mesh.transform.sxz;
rawData[12] = _mesh.transform.tx;
rawData[1] = _mesh.transform.syx;
rawData[5] = _mesh.transform.syy;
rawData[9] = _mesh.transform.syz;
rawData[13] = _mesh.transform.ty;
rawData[2] = _mesh.transform.szx;
rawData[6] = _mesh.transform.szy;
rawData[10] = _mesh.transform.szz;
rawData[14] = _mesh.transform.tz;
rawData[3] = _mesh.transform.swx;
rawData[7] = _mesh.transform.swy;
rawData[11] = _mesh.transform.swz;
rawData[15] = _mesh.transform.tw;

return tr;
return new Matrix3D(rawData);
}

public function set transform(m:Matrix3D):void {
Expand Down
36 changes: 18 additions & 18 deletions fp10/src/jiglib/plugin/papervision3d/Pv3dMesh.as
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,25 @@ package jiglib.plugin.papervision3d {
}

public function get transform():flash.geom.Matrix3D {
var tr:flash.geom.Matrix3D = new flash.geom.Matrix3D();
tr.rawData[0] = do3d.transform.n11;
tr.rawData[4] = do3d.transform.n12;
tr.rawData[8] = do3d.transform.n13;
tr.rawData[12] = do3d.transform.n14;
tr.rawData[1] = do3d.transform.n21;
tr.rawData[5] = do3d.transform.n22;
tr.rawData[9] = do3d.transform.n23;
tr.rawData[13] = do3d.transform.n24;
tr.rawData[2] = do3d.transform.n31;
tr.rawData[6] = do3d.transform.n32;
tr.rawData[10] = do3d.transform.n33;
tr.rawData[14] = do3d.transform.n34;
tr.rawData[3] = do3d.transform.n41;
tr.rawData[7] = do3d.transform.n42;
tr.rawData[11] = do3d.transform.n43;
tr.rawData[15] = do3d.transform.n44;
var rawData:Vector.<Number> = new Vector.<Number>(16, true);
rawData[0] = do3d.transform.n11;
rawData[4] = do3d.transform.n12;
rawData[8] = do3d.transform.n13;
rawData[12] = do3d.transform.n14;
rawData[1] = do3d.transform.n21;
rawData[5] = do3d.transform.n22;
rawData[9] = do3d.transform.n23;
rawData[13] = do3d.transform.n24;
rawData[2] = do3d.transform.n31;
rawData[6] = do3d.transform.n32;
rawData[10] = do3d.transform.n33;
rawData[14] = do3d.transform.n34;
rawData[3] = do3d.transform.n41;
rawData[7] = do3d.transform.n42;
rawData[11] = do3d.transform.n43;
rawData[15] = do3d.transform.n44;

return tr;
return new flash.geom.Matrix3D(rawData);
}

public function set transform(m:flash.geom.Matrix3D):void {
Expand Down
36 changes: 18 additions & 18 deletions fp10/src/jiglib/plugin/sandy3d/Sandy3DMesh.as
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,25 @@ package jiglib.plugin.sandy3d

public function get transform():Matrix3D
{
var tr:Matrix3D = new Matrix3D();
tr.rawData[0] = this.shape.matrix.n11;
tr.rawData[4] = this.shape.matrix.n12;
tr.rawData[8] = this.shape.matrix.n13;
tr.rawData[12] = this.shape.matrix.n14;
tr.rawData[1] = this.shape.matrix.n21;
tr.rawData[5] = this.shape.matrix.n22;
tr.rawData[9] = this.shape.matrix.n23;
tr.rawData[13] = this.shape.matrix.n24;
tr.rawData[2] = this.shape.matrix.n31;
tr.rawData[6] = this.shape.matrix.n32;
tr.rawData[10] = this.shape.matrix.n33;
tr.rawData[14] = this.shape.matrix.n34;
tr.rawData[3] = this.shape.matrix.n41;
tr.rawData[7] = this.shape.matrix.n42;
tr.rawData[11] = this.shape.matrix.n43;
tr.rawData[15] = this.shape.matrix.n44;
var rawData:Vector.<Number> = new Vector.<Number>(16, true);
rawData[0] = this.shape.matrix.n11;
rawData[4] = this.shape.matrix.n12;
rawData[8] = this.shape.matrix.n13;
rawData[12] = this.shape.matrix.n14;
rawData[1] = this.shape.matrix.n21;
rawData[5] = this.shape.matrix.n22;
rawData[9] = this.shape.matrix.n23;
rawData[13] = this.shape.matrix.n24;
rawData[2] = this.shape.matrix.n31;
rawData[6] = this.shape.matrix.n32;
rawData[10] = this.shape.matrix.n33;
rawData[14] = this.shape.matrix.n34;
rawData[3] = this.shape.matrix.n41;
rawData[7] = this.shape.matrix.n42;
rawData[11] = this.shape.matrix.n43;
rawData[15] = this.shape.matrix.n44;

return tr;
return new Matrix3D(rawData);
}

public function set transform(m:Matrix3D):void
Expand Down

0 comments on commit c7f4a65

Please sign in to comment.