Hi,

There are a few ways to set that up: First look at pitch(), yaw() and
roll() that rotate objects along their x, y and z axis. If that
doesn't work you can use an ObjectContainer3D to get better control on
things! To easily setup an orbiting object and have it rotate around
the center (like the earth) and it's local axis:


satContainer = new ObjectContainer3D();
addChild(satContainer);

satOne = new SatOne();
satContainer.addChild(satOne);


// Now lets say I want to rotate my satellite along the x axis:
satOne.x = orbitDistance;

// on render, tick, enterFrame...
// animate the rotation of the satellite around the x axis:
satOne.roll(.5);
// Animate the satellite container along the y axis to orbit around
the earth:
satContainer.yaw(.5);

ath

Jerome.

Reply via email to