Sitting at night on your code recalled several times tue handy copy3x4 from pv3d . Was very useful . Copy row or column still have not tried :)
Sent from my iPhone On Apr 8, 2011, at 1:11 PM, John Brookes <[email protected]> wrote: > Whoops, should be copyRow, then its same. > > var m3:Matrix3D = Matrix3D(container.transform).clone(); > m3.invert() > > var childCloneM3:Matrix3D = Matrix3D(childObject.transform).clone(); > > var xAxis:Vector3D = new Vector3D() > m3.copyRowTo(0, xAxis); > childCloneM3.copyRowFrom(0, xAxis); > > var yAxis:Vector3D = new Vector3D() > m3.copyRowTo(1, yAxis); > childCloneM3.copyRowFrom(1, yAxis); > > var zAxis:Vector3D = new Vector3D() > m3.copyRowTo(2, zAxis); > childCloneM3.copyRowFrom(2, zAxis); > > childObject.transform = childCloneM3;
