Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Nuke on March 16, 2010, 03:13:44 pm

Title: angular glide, moi, and other torque related physics
Post by: Nuke on March 16, 2010, 03:13:44 pm
i kinda like glide but it would kinda be cool if we could optionally have conservation of angular momentum while gliding. effects from things like beam whacks and weapons collisions would linger until the pilot corrected them (at least while in glide mode). it would probably cap the max turn rate that the pilot can induce separately from the maximum torque induced by external forces. also would it be possible to have a flag to allow the moment of inertia to apply to all applied torque to the ship (including turning rates). i find doing the same with scripting to give ships much more character as far as maneuvering goes.
Title: Re: angular glide, moi, and other torque related physics
Post by: chief1983 on March 16, 2010, 03:21:32 pm
It seems full manual correction wouldn't be necessary considering it seems the computers are more than capable of handling those types of corrections already.  Although I suppose mods with less advanced intertia control computers would get a nice effect.
Title: Re: angular glide, moi, and other torque related physics
Post by: headdie on March 16, 2010, 03:52:05 pm
It seems full manual correction wouldn't be necessary considering it seems the computers are more than capable of handling those types of corrections already.  Although I suppose mods with less advanced intertia control computers would get a nice effect.

but then as you say we already have aircraft that handle split second adjustments to the point where the flying wing is has been possible since the 80s biggest example being the B2 with fighters like eurofighter are designed to be aerodynamically unstable using computers to correcting several times a second
Title: Re: angular glide, moi, and other torque related physics
Post by: Herra Tohtori on March 16, 2010, 03:56:57 pm
but then as you say we already have aircraft that handle split second adjustments to the point where the flying wing is has been possible since the 80s biggest example being the B2 with fighters like eurofighter are designed to be aerodynamically unstable using computers to correcting several times a second

He just kept talking in one long incredibly unbroken sentence moving from topic to topic so that no one had the chance to interrupt it was really quite hypnotic



Anyway, having full physics support for angular momentum as well as linear would be necessary for things like atmospheric flight extension, regardless of how well the ship is stabilized by on-board computers.
Title: Re: angular glide, moi, and other torque related physics
Post by: Dark RevenantX on March 16, 2010, 06:53:08 pm
Luckily, the math behind it is really quite simple.  I'd like to see this put in practice, especially for things like ship collisions and impact damage.
Title: Re: angular glide, moi, and other torque related physics
Post by: Nuke on March 16, 2010, 07:30:33 pm
applying moi to torque is as simple as a matrix vector multiply
torquevec * moi matrix = angular acceleration

torques can be computer from linear forces and summed up to convert a linear force to a torque just requires getting the cross product of the force vector with the vector offset from the cg:
forcevec X position

basic stuff :D

of course the idea was kinda for semi-newtonian, for technical reasons caps would have to be added (play orbiter then set time compression really high and fire a thruster to see why :D ). same kinda limits normal glide has.

It seems full manual correction wouldn't be necessary considering it seems the computers are more than capable of handling those types of corrections already.  Although I suppose mods with less advanced intertia control computers would get a nice effect.

intresting you mention that. it would be kinda cool to have a stabilizer subsystem that you need for normal flight, if it gets damaged or disabled then youre stuck in glide mode :D
i also kinda wanted a force glide mission flag.