Rotate Around Object: CODING

Today in class we started looking more into code to prepare us for our exams.

We used a string called “Transform.RotateAround”

This meant that the object would rotate around a certain pivot.

At first I had no idea how to do this, but with a bit of help, I have now created a solar system of objects, and also textured them and added particle effects.

ezgif-3580484502.gif

start of solar system from above

ezgif-526031869.gif

Start of solar system from perspective view

I also added some code in to make the planets, moons and sun pivot on their point so it looks like they’re rotating.

 

Leave a comment