Changeset 136 for code/branches/main_reto/src/OrxonoxShip.cpp
- Timestamp:
- Oct 31, 2007, 10:53:51 PM (17 years ago)
- Location:
- code/branches/main_reto
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/main_reto
-
Property
svn:ignore
set to
media
bin
obj
-
Property
svn:ignore
set to
-
code/branches/main_reto/src/OrxonoxShip.cpp
r133 r136 3 3 4 4 OrxonoxShip::OrxonoxShip(SceneManager *mSceneMgr, SceneNode *mNode) 5 : mSceneMgr(mSceneMgr), mRootNode(mNode), speed(Vector3(0, 0, 0)), baseThrust(100 ), thrust(0), sideThrust(0), n(0),5 : mSceneMgr(mSceneMgr), mRootNode(mNode), speed(Vector3(0, 0, 0)), baseThrust(1000), thrust(0), sideThrust(0), n(0), 6 6 bulletSpeed(400) 7 7 { … … 77 77 { 78 78 speed += (mRootNode->getLocalAxes() * Vector3(0, 0, -1)).normalisedCopy() * thrust * deltaTime; 79 speed += (mRootNode->getLocalAxes() * Vector3( 1, 0, 0)).normalisedCopy() * sideThrust * deltaTime;79 speed += (mRootNode->getLocalAxes() * Vector3(-1, 0, 0)).normalisedCopy() * sideThrust * deltaTime; 80 80 81 81 mRootNode->translate(speed * deltaTime);
Note: See TracChangeset
for help on using the changeset viewer.