Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3324 in orxonox.OLD for orxonox/branches/parenting/src


Ignore:
Timestamp:
Jan 3, 2005, 2:42:28 PM (20 years ago)
Author:
bensch
Message:

orxonox/branches/parenting: rotated the normals from the debug-world

Location:
orxonox/branches/parenting/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/parenting/src/stdincl.h

    r3319 r3324  
    3131
    3232#include "vector.h"
     33#include "matrix.h"
    3334#include "curve.h"
    3435#include "coordinates.h"
  • orxonox/branches/parenting/src/world.cc

    r3323 r3324  
    312312        Vector c4 = v5 - v1;
    313313        Vector zero = Vector (0,0,0);
    314         normal_vectors[i][j]=c1.cross(v4-v2)+c2.cross(v1-v3)+c3.cross(v2-v4)+c4.cross(v3-v1);
     314        normal_vectors[i][j]=c1.cross(v3-v5)+c2.cross(v4-v2)+c3.cross(v5-v3)+c4.cross(v2-v4);
    315315        normal_vectors[i][j].normalize();
    316316      }
Note: See TracChangeset for help on using the changeset viewer.