Ok got it now, I shouldn't actually change the x position but use a
larger pivot offset in the first place ...
_planet1.x = 0;
_planet1.pivotPoint = new Number3D(-600, 0, 0);
This did the trick.
On Fri, Aug 28, 2009 at 8:00 PM, Sascha<[email protected]> wrote:
> Of course you're right, it should rotate around the y axis but I'm
> offsetting the pivot point on the x axis which I think is correct. But
> I'm still doing something wrong, see my example, the inner planet
> rotates in exactly half the size as what it should. ...
> http://files.hexagonstar.com/test/StarSystem.swf
>
> Code piece looks like this:
>
> _planet1 = new Sphere();
> _planet1.material = planet1Material;
> _planet1.radius = 20;
> _planet1.segmentsH = 8;
> _planet1.segmentsW = 14;
> _planet1.x = 300;
> _planet1.pivotPoint = new Number3D(-300, 0, 0);
> _scene.addChild(_planet1);
>
>
>
>
> On Fri, Aug 28, 2009 at 6:35 PM,
> elguapoloco<[email protected]> wrote:
>>
>> I think it should rotationY, no?
>