Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2463


Ignore:
Timestamp:
Dec 15, 2008, 1:52:00 AM (16 years ago)
Author:
rgrieder
Message:

Two bugfixes and an optimisation.

Location:
code/branches/presentation/src/orxonox/objects
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation/src/orxonox/objects/Scene.cc

    r2459 r2463  
    249249                {
    250250                    this->physicalWorld_->addRigidBody((*it)->getPhysicalBody());
     251                    this->physicalObjects_.insert(*it);
    251252                }
    252253                this->physicalObjectQueue_.clear();
  • code/branches/presentation/src/orxonox/objects/collisionshapes/CompoundCollisionShape.cc

    r2459 r2463  
    151151        }
    152152        if (bEmpty)
     153        {
     154            if (this->collisionShape_ == 0)
     155            {
     156                this->collisionShape_ = 0;
     157                return;
     158            }
    153159            this->collisionShape_ = 0;
     160        }
    154161        else if (bPrimitive)
    155162        {
  • code/branches/presentation/src/orxonox/objects/worldentities/pawns/SpaceShip.cc

    r2459 r2463  
    141141    void SpaceShip::rotateYaw(const Vector2& value)
    142142    {
    143         this->localAngularAcceleration_.setY(this->localLinearAcceleration_.y() + value.x);
     143        this->localAngularAcceleration_.setY(this->localAngularAcceleration_.y() + value.x);
    144144    }
    145145
    146146    void SpaceShip::rotatePitch(const Vector2& value)
    147147    {
    148         this->localAngularAcceleration_.setX(this->localLinearAcceleration_.x() + value.x);
     148        this->localAngularAcceleration_.setX(this->localAngularAcceleration_.x() + value.x);
    149149    }
    150150
    151151    void SpaceShip::rotateRoll(const Vector2& value)
    152152    {
    153         this->localAngularAcceleration_.setZ(this->localLinearAcceleration_.z() - value.x);
     153        this->localAngularAcceleration_.setZ(this->localAngularAcceleration_.z() - value.x);
    154154    }
    155155
Note: See TracChangeset for help on using the changeset viewer.