|
|
|
|
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);
|