Hard Light Productions Forums
Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: aldo_14 on November 07, 2003, 03:06:21 pm
-
Um...just wondering, has any progree been made on figuring out the MOI settings for custom ships? i.e. to stop them bucking madly when firing beams, for example.
-
MOI?
bucking while firing beams is you probably didn't set your mass
-
moment of inertia
-
And both mass & M.O.I. have been set (mass & centrepoint & MOI copied direckly from other similar V models, mass just made up, or calculated by PCS), and the problem still occurs.
-
MOI has never been figured out.
Examples of when it comes into play are when ships get hit by AAA beams. Volition ships have the proper MOI set and they get bounced around. Fan ships don't get bounced around at all (or get bounced around in very odd ways)....generally means that fan ships are differently balanced VS volition ships.
-
i havent done anything with MOI, i think i leave it uninitialized
-
I guess Aldo wants you to look at the scource and say how the game uses MOI so that we can set it properly rather than asking for any actual changes.
-
something interesting I've found
// default values for moment of inetaia
vm_vec_make( &pi->I_body_inv.vec.rvec, 1e-5f, 0.0f, 0.0f );
vm_vec_make( &pi->I_body_inv.vec.uvec, 0.0f, 1e-5f, 0.0f );
vm_vec_make( &pi->I_body_inv.vec.fvec, 0.0f, 0.0f, 1e-5f );
-
*watches point fly overhead*
-
Hmm....interesting. Unfortunately i don't really have a copy of the code, or any idea of the context of this....
Originally posted by karajorma
I guess Aldo wants you to look at the scource and say how the game uses MOI so that we can set it properly rather than asking for any actual changes.
Yup, pretty much - unless someone is a physics specialist. Unfortunately, I have the feeling you;d need the Volition convertor to truly understand how to set the values, but there's always hope.