Changeset 11932 for code/branches/ScriptableController_FS18/src/orxonox
- Timestamp:
- May 3, 2018, 3:16:09 PM (7 years ago)
- Location:
- code/branches/ScriptableController_FS18/src/orxonox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ScriptableController_FS18/src/orxonox/scriptablecontroller/scriptable_controller_api.cc
r11928 r11932 408 408 controllable_entity = orxonox_cast<ControllableEntity*>(entity); 409 409 410 orxout(user_warning) << "Accessed " << id << std::endl;411 412 410 controllable_entity->moveFrontBack(x); 413 411 controllable_entity->moveRightLeft(y); -
code/branches/ScriptableController_FS18/src/orxonox/worldentities/pawns/AAAAutonomousDrone.cc
r11928 r11932 121 121 SUPER(AAAAutonomousDrone, tick, dt); 122 122 123 123 124 this->localLinearAcceleration_.setX(this->localLinearAcceleration_.x() * getMass() * this->auxiliaryThrust_); 124 125 this->localLinearAcceleration_.setY(this->localLinearAcceleration_.y() * getMass() * this->auxiliaryThrust_); 126 127 125 128 if (this->localLinearAcceleration_.z() > 0) 126 129 this->localLinearAcceleration_.setZ(this->localLinearAcceleration_.z() * getMass() * this->auxiliaryThrust_); 127 130 else 128 131 this->localLinearAcceleration_.setZ(this->localLinearAcceleration_.z() * getMass() * this->primaryThrust_); 132 129 133 this->physicalBody_->applyCentralForce(physicalBody_->getWorldTransform().getBasis() * this->localLinearAcceleration_); 130 134 this->localLinearAcceleration_.setValue(0, 0, 0);
Note: See TracChangeset
for help on using the changeset viewer.