- Timestamp:
- May 7, 2014, 2:03:18 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ScriptableController/src/orxonox/controllers/ScriptController.cc
r10045 r10046 67 67 ScriptController* ScriptController::getScriptController() 68 68 { 69 /* Output a message that confirms this function was called */ 69 70 orxout() << "Great success!" << std::endl; 71 72 /* Loop over all the scriptcontrollers currently present in the game */ 70 73 for(ObjectList<ScriptController>::iterator it = 71 74 ObjectList<ScriptController>::begin(); … … 83 86 void ScriptController::moveToPosition_beta(float x, float y, float z ) 84 87 { 88 /* The section commented out here below throws segfaults */ 89 //const Vector3 local=getPosition(); 90 //const Vector3 target=Vector3(x,y,z); 91 //Vector3 way=target-local; 92 93 94 //this->controlled->lookAt(target); 95 //this->controlled->moveFrontBack(way.length()); 85 96 86 const Vector3 local=getPosition(); 87 const Vector3 target=Vector3(x,y,z); 88 89 Vector3 way=target-local; 90 91 92 this->controlled->lookAt(target); 93 94 this->controlled->moveFrontBack(way.length()); 95 96 97 /*orxout()<<x<<" "<<y<<" "<<z<<endl;*/ 98 99 100 101 97 98 /* This works fine */ 99 orxout()<<x<<" "<<y<<" "<<z<<endl; 102 100 } 103 101
Note: See TracChangeset
for help on using the changeset viewer.