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

Title: Have pof M.O.I. settings been looked at?
Post 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.
Title: Have pof M.O.I. settings been looked at?
Post by: Kazan on November 07, 2003, 03:38:46 pm
MOI?

bucking while firing beams is you probably didn't set your mass
Title: Have pof M.O.I. settings been looked at?
Post by: phreak on November 07, 2003, 03:55:38 pm
moment of inertia
Title: Have pof M.O.I. settings been looked at?
Post by: aldo_14 on November 07, 2003, 04:03:38 pm
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.
Title: Have pof M.O.I. settings been looked at?
Post by: IceFire on November 07, 2003, 04:09:44 pm
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.
Title: Have pof M.O.I. settings been looked at?
Post by: Kazan on November 07, 2003, 04:28:37 pm
i havent done anything with MOI, i think i leave it uninitialized
Title: Have pof M.O.I. settings been looked at?
Post by: karajorma on November 07, 2003, 04:37:37 pm
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.
Title: Have pof M.O.I. settings been looked at?
Post by: Bobboau on November 07, 2003, 07:42:21 pm
something interesting I've found

Code: [Select]
// 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 );
Title: Have pof M.O.I. settings been looked at?
Post by: Taristin on November 07, 2003, 07:54:24 pm
*watches point fly overhead*
Title: Have pof M.O.I. settings been looked at?
Post by: aldo_14 on November 08, 2003, 08:02:12 am
Hmm....interesting.  Unfortunately i don't really have a copy of the code, or any idea of the context of this....

Quote
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.