Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/main_reto/src/OrxonoxShip.cpp @ 127

Last change on this file since 127 was 127, checked in by rgrieder, 17 years ago
File size: 595 bytes
Line 
1#include "OrxonoxShip.h"
2
3
4OrxonoxShip::OrxonoxShip(SceneManager *mSceneMgr, SceneNode *mNode) : mSceneMgr(mSceneMgr), mRootNode(mNode)
5{
6}
7
8
9OrxonoxShip::~OrxonoxShip()
10{
11}
12
13
14bool OrxonoxShip::initialise()
15{
16        // load all the resources needed (no resource groups yet, so the allInit is not executed!)
17        //ResourceGroupManager::getSingleton().initialiseAllResourceGroups();
18
19        // create the "space ship" (currently a fish..)
20        mShip = mSceneMgr->createEntity("Ship", "fish.mesh");
21        mRootNode->setScale(Vector3(10, 10, 10));
22        mRootNode->attachObject(mShip);
23
24        return true;
25}
Note: See TracBrowser for help on using the repository browser.