1
0
Fork 0

Replaced all instances sgMultMat4 with sgPre/PostMultMat4 to avoid bug and

fix discrepancy in plib.
This commit is contained in:
curt 2000-04-04 05:49:05 +00:00
parent 616610a962
commit d9c7848ed7

View file

@ -571,10 +571,16 @@ void fgRenderFrame( void ) {
sgMat4 sgROT;
sgMakeRotMat4( sgROT, -90.0, ownship_up );
sgMat4 sgTMP;
// sgMat4 sgTMP;
// sgMat4 sgTUX;
// sgMultMat4( sgTMP, sgROT, pilot_view.VIEW_ROT );
// sgMultMat4( sgTUX, sgTMP, sgTRANS );
// sgTUX = ( sgROT * pilot_view.VIEW_ROT ) * sgTRANS
sgMat4 sgTUX;
sgMultMat4( sgTMP, sgROT, pilot_view.VIEW_ROT );
sgMultMat4( sgTUX, sgTMP, sgTRANS );
sgCopyMat4( sgTUX, sgROT );
sgPostMultMat4( sgTUX, pilot_view.VIEW_ROT );
sgPostMultMat4( sgTUX, sgTRANS );
sgCoord tuxpos;
sgSetCoord( &tuxpos, sgTUX );