Browse Source

unsaved file

develop
Robin Thoni 8 years ago
parent
commit
060aea82fa
1 changed files with 0 additions and 1 deletions
  1. 0
    1
      UGameEngine/cameras/freeflycamera.cpp

+ 0
- 1
UGameEngine/cameras/freeflycamera.cpp View File

56
 void FreeFlyCamera::updateLookAt()
56
 void FreeFlyCamera::updateLookAt()
57
 {
57
 {
58
     Vector3D perp(_direction.getZ(), 0, -_direction.getX());
58
     Vector3D perp(_direction.getZ(), 0, -_direction.getX());
59
-    qDebug() << perp.getX() << perp.getY() << perp.getZ() << perp.norm() << _direction.getX() << _direction.getY() << _direction.getZ() << _direction.norm();
60
     perp /= perp.norm();
59
     perp /= perp.norm();
61
     _position += Vector3D(_direction * _speedVector.getX()).mult(_speed);
60
     _position += Vector3D(_direction * _speedVector.getX()).mult(_speed);
62
     _position += Vector3D(perp * _speedVector.getY()).mult(_speed);
61
     _position += Vector3D(perp * _speedVector.getY()).mult(_speed);

Loading…
Cancel
Save