|
@@ -87,7 +87,7 @@ void Kam3D::setAusrichtung( Vec3< float > ziel )
|
|
|
if( Vec3< float >( 0, target.y, target.z ).getLength() == 0 )
|
|
|
rotX = 0;
|
|
|
else
|
|
|
- rotX = -lowPrecisionACos( abs( target.z ) / Vec3< float >( 0, target.y, target.z ).getLength() );
|
|
|
+ rotX = -lowPrecisionACos( target.z / Vec3< float >( 0, target.y, target.z ).getLength() );
|
|
|
if( target.y < 0 )
|
|
|
rotX = -rotX;
|
|
|
if( Vec3< float >( target.x, 0, target.z ).getLength() == 0 )
|
|
@@ -138,7 +138,7 @@ void Kam3D::setBildschirmSize( int br, int h
|
|
|
|
|
|
|
|
|
|
|
|
-void Kam3D::setWelt( Welt3D * w )
|
|
|
+void Kam3D::setWelt( Welt3D *w )
|
|
|
{
|
|
|
if( welt )
|
|
|
welt->release();
|
|
@@ -226,7 +226,7 @@ bool Kam3D::tick( double tv )
|
|
|
|
|
|
|
|
|
|
|
|
-void Kam3D::doMausEreignis( MausEreignis & me )
|
|
|
+void Kam3D::doMausEreignis( MausEreignis &me )
|
|
|
{
|
|
|
if( me.verarbeitet )
|
|
|
return;
|
|
@@ -249,7 +249,7 @@ void Kam3D::doMausEreignis( MausEreignis & me )
|
|
|
|
|
|
|
|
|
|
|
|
-void Kam3D::doTastaturEreignis( TastaturEreignis & te )
|
|
|
+void Kam3D::doTastaturEreignis( TastaturEreignis &te )
|
|
|
{
|
|
|
|
|
|
}
|
|
@@ -307,7 +307,7 @@ const Vec3< float > Kam3D::getWorldDirection( Punkt screen ) const
|
|
|
}
|
|
|
|
|
|
|
|
|
-const Mat4< float > & Kam3D::getProjectionMatrix() const
|
|
|
+const Mat4< float > &Kam3D::getProjectionMatrix() const
|
|
|
{
|
|
|
return proj;
|
|
|
}
|