Hi,

satOne.rotationX = -25 is what is creating the wobble. This needs to
be applied to the main container. Then you offset the satellite object
(that is inside the main container) along the y axis to the distance
you need. Then you apply a rotationY or a yaw() on the satellite. At
that point the child object (the satellite) has no other rotations
applied to it and it should not wobble. The key is to keep the
container in the center. You do not move it. You move the satellite (a
child of that object).

So to be clear in a setup with a container with a satellite as its
child:
- Rotation X is on the container. You can also apply a Y rotation on
the container to simulate orbiting the center.
- Y offset (Y move or the orbit distance) and Y rotation on the
satellite.

Main container controls the rotation around the earth. Child or
Satellite controls the distance to the earth and spinning. To avoid
wobble only rotate the satellite around ONE axis the one used for the
distance!

Trust me, this works! I used that setup for this demo:
http://www.wemakedotcoms.com/_projects/stc09/locationsMap/STC_Locations_Map_3D.html
Mouse over the red cubes to have them rotate as you need your
satellite to rotate. It's an old 3D trick, called parenting, to
achieve things like orbits.

ath

Jerome.


-- 
To unsubscribe, reply using "remove me" as the subject.

Reply via email to