Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 14, 2008, 12:20:14 AM (16 years ago)
Author:
landauf
Message:

removed WorldEntity, SpaceShip and several other objects
removed SpaceShip-related hacks in network and other places

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/objecthierarchy/src/orxonox/overlays/hud/HUDNavigation.cc

    r1819 r1916  
    4141#include "core/XMLPort.h"
    4242#include "objects/Radar.h"
    43 #include "objects/SpaceShip.h"
    44 #include "objects/Projectile.h"
    4543#include "objects/CameraHandler.h"
    4644
     
    149147        float textLength = convertToString(dist).size() * navText_->getCharHeight() * 0.3;
    150148
     149/*
    151150        Ogre::Camera* navCam = SpaceShip::getLocalShip()->getCamera()->cam_;
    152151        Matrix4 transformationMatrix = navCam->getProjectionMatrix() * navCam->getViewMatrix();
     152*/
    153153        // transform to screen coordinates
    154         Vector3 pos = transformationMatrix * Radar::getInstance().getFocus()->getWorldPosition();
     154        Vector3 pos = /*transformationMatrix * */Radar::getInstance().getFocus()->getWorldPosition();
    155155
    156156        bool outOfView;
     
    224224        {
    225225            // object is in view
    226 
     226/*
    227227            Vector3 aimpos = transformationMatrix * getPredictedPosition(SpaceShip::getLocalShip()->getPosition(),
    228228                    Projectile::getSpeed(), Radar::getInstance().getFocus()->getWorldPosition(), Radar::getInstance().getFocus()->getOrientedVelocity());
    229 
     229*/
    230230            if (wasOutOfView_)
    231231            {
     
    240240
    241241            aimMarker_->show();
     242/*
    242243            aimMarker_->setLeft((aimpos.x + 1.0 - aimMarker_->getWidth()) * 0.5);
    243244            aimMarker_->setTop((-aimpos.y + 1.0 - aimMarker_->getHeight()) * 0.5);
    244 
     245*/
    245246            navText_->setLeft((pos.x + 1.0 + navMarker_->getWidth()) * 0.5);
    246247            navText_->setTop((-pos.y + 1.0 + navMarker_->getHeight()) * 0.5);
     
    250251    float HUDNavigation::getDist2Focus() const
    251252    {
     253/*
    252254        if (Radar::getInstance().getFocus())
    253255            return (Radar::getInstance().getFocus()->getWorldPosition() - SpaceShip::getLocalShip()->getPosition()).length();
    254256        else
     257*/
    255258            return 0;
    256259    }
Note: See TracChangeset for help on using the changeset viewer.