http://www.vespan.com/localcoord1L.swf

On Jul 14, 1:28 pm, Joseph <[email protected]> wrote:
> [away3dlite]
>
> Hello,
>
> In Object3D.as I see that one can rotate around an object's local
> coordinates. This seems to work as long as object is at 0,0,0.
>
> Here is an example:www.vespan.com/localcoord1L.swf
>
> The center sphere is at 0,0,0 and the outer sphere is at 120,0,0.
>
> Some code:
> mainSphere1 = new Sphere();
>                 mainSphere1.x = 0;
>                 mainSphere1.y = 0;
>                 mainSphere1.z = 0;
> mainSphere2 = new Sphere();
>                 mainSphere2.x = 120;
>                 mainSphere2.y = 0;
>                 mainSphere2.z = 0;
>
> onEnterFrame {
> mainSphere1.rotate(1, Vector3D.Y_AXIS);
> mainSphere2.rotate(1, Vector3D.Y_AXIS);
>
> }
>
> I would expect the rotate calls for each sphere should rotate each
> sphere about it's own Y-axis ... :-?

Reply via email to