I try to make the solar system. My planets move in circles:
this.obj.position.x = (this.positionX*20) * Math.cos( this.ange );
this.obj.position.z = (this.positionX*20) * Math.sin( this.ange );
this.ange = this.ange + this.rotationAhisSpeed;
How do rotate the moon around the earth? I know the position of the earth, but how to calculate the cosine and sinus?