Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9770


Ignore:
Timestamp:
Nov 11, 2013, 1:55:23 PM (10 years ago)
Author:
wroennin
Message:

Math.cc: added comment for directions, correccted vectors; New Test level radar3D_test.oxw

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/radarDreiD/src/libraries/util/Math.cc

    r9749 r9770  
    211211
    212212        // new coordinate system base y_coordinate
    213         orxonox::Vector3 myside = mydirection.crossProduct(-myorthonormal);
     213        orxonox::Vector3 myside = -(mydirection.crossProduct(myorthonormal));
    214214
    215215        // inverse of the transform matrix
     
    247247
    248248        // project vector for the rotated 3DMap on screen
    249         float xcoordinate = -distance.y; // -; cause in room myside points to the left, on screen x to the right
    250         float ycoordinate = (distance.x*sin(mapangle)+distance.z*cos(mapangle));
     249        float xcoordinate = distance.z; // z; cause z direction is to the side
     250        float ycoordinate = (distance.x*sin(mapangle)+distance.y*cos(mapangle));
    251251        return orxonox::Vector2(xcoordinate , ycoordinate);
    252252    }
Note: See TracChangeset for help on using the changeset viewer.