Changeset 11083 for code/trunk/src/orxonox/controllers/ScriptController.cc
- Timestamp:
- Jan 21, 2016, 1:59:04 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/controllers/ScriptController.cc
r11071 r11083 227 227 { 228 228 // Specify the axis 229 Vector3 *a;229 Vector3 a; 230 230 switch ((int) currentEvent.d) { 231 231 case 3: 232 a = newVector3(this->currentEvent.v1.x + this->currentEvent.e*cos(2*math::pi*dl),232 a = Vector3(this->currentEvent.v1.x + this->currentEvent.e*cos(2*math::pi*dl), 233 233 this->currentEvent.v1.y + this->currentEvent.e*sin(2*math::pi*dl), 234 234 this->currentEvent.v1.z); 235 235 break; 236 236 case 2: 237 a = newVector3(this->currentEvent.v1.x + this->currentEvent.e*sin(2*math::pi*dl),237 a = Vector3(this->currentEvent.v1.x + this->currentEvent.e*sin(2*math::pi*dl), 238 238 this->currentEvent.v1.y, 239 239 this->currentEvent.v1.z + this->currentEvent.e*cos(2*math::pi*dl)); 240 240 break; 241 241 case 1: 242 a = newVector3(this->currentEvent.v1.x,242 a = Vector3(this->currentEvent.v1.x, 243 243 this->currentEvent.v1.y + this->currentEvent.e*sin(2*math::pi*dl), 244 244 this->currentEvent.v1.z + this->currentEvent.e*cos(2*math::pi*dl)); … … 246 246 } 247 247 248 this->entity_->setPosition( *a);248 this->entity_->setPosition(a); 249 249 250 250 /* Look at the specified position */
Note: See TracChangeset
for help on using the changeset viewer.