Skip to content

Instantly share code, notes, and snippets.

@jasonroelofs
Created March 17, 2011 16:52
Show Gist options
  • Save jasonroelofs/874671 to your computer and use it in GitHub Desktop.
Save jasonroelofs/874671 to your computer and use it in GitHub Desktop.
From Game.cpp, initializing the player's Camera Actor
Actor* actor = new Actor(utils::calculatePosition(Ogre::Vector3(4, 5, 4)));
actor->addComponent(new components::CameraComponent(mWindow));
actor->addComponent(new components::MovementComponent());
actor->addComponent(new components::MouseLookComponent());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment