Game Development Community

Flying Vehicle Buoyancy

by Denise Bacher · in Technical Issues · 02/15/2007 (9:30 pm) · 1 replies

I'm currently working on a space flight-sim. I have turned off gravity but am having problems with the ship leveling out with the would-be horizon when I stop propelling. Any ideas on how to prevent the ship from being buoyant? Thanks.

#1
02/18/2007 (8:18 am)
All you have to do is comment out the following lines of code in flyingvehicle.cc:
// Gyroscope
      F32 gf = mDataBlock->autoAngularForce * autoScale;
      torque -= xv * gf * mDot(yv,Point3F(0,0,1));