Skip to content

Instantly share code, notes, and snippets.

@jasonroelofs
Created March 17, 2011 16:57
Show Gist options
  • Save jasonroelofs/874688 to your computer and use it in GitHub Desktop.
Save jasonroelofs/874688 to your computer and use it in GitHub Desktop.
Adding a Planet, with custom scale
Actor* planet = new Actor();
planet->transform->scale = Ogre::Vector3(size, size, size);
planet->addComponent(new components::MeshComponent("sphere.mesh", "dirt"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment