Hi there, I am having some trouble rotating my "X" model. here is the setup for my guy.
dbLoadImage("Media/People/scifi/ai_2_D2.dds", 87 );//Texture file path
int obj = 1;
dbLoadObject ( "Media/People/scifi/AI.x", obj );//Object file path
dbScaleObject ( obj, 100, 100, 100 );//Object size
dbPositionObject( obj, 350, 0, 509);// Plane position
dbYRotateObject( obj, 90 );//Rotate
dbTextureObject ( 1, 87 ); //Texture object
//
And here is my camera setup.
dbRotateObject( 1, 0,ya,0 );
x=dbObjectPositionX(1);
y=dbObjectPositionY(1);
z=dbObjectPositionZ(1);
dbPrint(dbObjectPositionX(1));
angle=dbObjectAngleY(1)+an;
distance=160.0;
height=80.0 ;
smooth=15.0;
dbSetCameraToFollow( x,y,z,angle,distance,height,smooth,1);//a
Edit: Sorry should explain more. My model is facing tawards me(camera),
I have changed and adjusted it every way i can think of. It will not face the other way no matter what i do.
===================
No life, Lots of love, 2 Kids, God save me LOL