Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 17, 2008, 5:41:29 AM (16 years ago)
Author:
landauf
Message:
  • some changes, maybe fixed a crash, not sure
  • fixed strange camera behavior
Location:
code/branches/presentation/src/orxonox/objects/worldentities
Files:
3 edited

Legend:

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

    r2493 r2497  
    112112            this->cameraNode_->translate(coeff * offset);
    113113
    114             this->cameraNode_->setOrientation(Quaternion::Slerp(coeff, this->cameraNode_->getWorldOrientation(), this->getWorldOrientation(), false));
     114            this->cameraNode_->setOrientation(Quaternion::Slerp(coeff, this->cameraNode_->getWorldOrientation(), this->getWorldOrientation(), true));
    115115            //this->cameraNode_->setOrientation(this->getWorldOrientation());
    116116        }
  • code/branches/presentation/src/orxonox/objects/worldentities/ParticleEmitter.cc

    r2485 r2497  
    102102    {
    103103        if (this->particles_)
     104        {
    104105            delete this->particles_;
     106            this->particles_ = 0;
     107        }
    105108
    106109        if (this->getScene() && this->getScene()->getSceneManager())
     
    119122            }
    120123        }
    121         else
    122             this->particles_ = 0;
    123124    }
    124125
  • code/branches/presentation/src/orxonox/objects/worldentities/WorldEntity.cc

    r2494 r2497  
    104104            this->node_->removeAllChildren();
    105105
     106            if (this->physicalBody_)
     107            {
     108                this->deactivatePhysics();
     109                delete this->physicalBody_;
     110            }
     111            delete this->collisionShape_;
     112
    106113            if (this->getScene()->getSceneManager())
    107114                this->getScene()->getSceneManager()->destroySceneNode(this->node_->getName());
    108 
    109             // TODO: Detach from parent and detach all children.
    110 
    111             if (this->physicalBody_)
    112             {
    113                 this->deactivatePhysics();
    114                 delete this->physicalBody_;
    115             }
    116             delete this->collisionShape_;
    117115        }
    118116    }
Note: See TracChangeset for help on using the changeset viewer.