|
@@ -56,7 +56,6 @@ void FreeFlyCamera::keyReleaseEvent(QKeyEvent *event)
|
56
|
56
|
void FreeFlyCamera::updateLookAt()
|
57
|
57
|
{
|
58
|
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
|
59
|
perp /= perp.norm();
|
61
|
60
|
_position += Vector3D(_direction * _speedVector.getX()).mult(_speed);
|
62
|
61
|
_position += Vector3D(perp * _speedVector.getY()).mult(_speed);
|