Ejemplo n.º 1
0
 internal void update()
 {
     Vector diff = new Vector(position, lookAt);
     this.direction = -diff.normalize();
     this.right = new Vector(0, 1, 0).cross(direction).normalize();
     this.down = -right.cross(direction);
 }