Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: IPAndrews on August 01, 2005, 10:28:36 am

Title: Faster moving debris?
Post by: IPAndrews on August 01, 2005, 10:28:36 am
In the code what determines the speed at which debris moves away from a destroyed ship. Is it hard coded? Can it be influenced by the pof of the ship being destroyed or the ship's table entry? I ask because I'm blowing up a planet and the debris is not flying away at an appropriately planetary speed. Actually I think it's moving away at the speed it normally would. Which on a planetary scale means it looks like it's just sat there.
Title: Faster moving debris?
Post by: Starman01 on August 01, 2005, 12:22:55 pm
Good question, i have the problem in an opposite site. My debris (mostly from fighters) is moving ridiculous fast. Would be good, if this can be controlled in some sort

Has it something to do with the "mass" of the model or something ?
Title: Faster moving debris?
Post by: IPAndrews on August 02, 2005, 05:01:05 am
Yes Babylon 5 does that. When it splits the two halves of the station fly about 30km apart or something ridiculous and it flings the debris away so quickly you can't admire it. Which is a shame because I spent a bit of time on it.

Well anyway. Mars. THe model being destroyed. Has a mass of 215999991662455550000.000000. Which is quite a lot really. Although it could be causing some kind of overflow error in the code that uses it to calculate split and debris flinging speed, somehow I doubt that. I find it more likely the mass isn't used for this at all.

Oh I also have to set it to kamikazi otherwise it takes forever to explode. Someone coded a new table entry to make the explode time user definable. Anyone remember what it is? I did a search but I couldn't find it.

Here's some pictures of Mars being blown up for no particular reason.

(http://www.3dactionplanet.com/hlp/hosted/babylon/img/screenshots/marsattacked5.jpg)

The rest are in the Screenshots thread in the TBP forum.
Title: Faster moving debris?
Post by: WMCoolmon on August 02, 2005, 05:15:58 am
Mars getting blown up? Does this happen often in the B5 universe? :p
Title: Faster moving debris?
Post by: IPAndrews on August 02, 2005, 05:37:35 am
If you've got good textures, I'll blow up any planet you like ;7
Title: Faster moving debris?
Post by: aldo_14 on August 02, 2005, 06:13:30 am
Magarathea?
Title: Faster moving debris?
Post by: NGTM-1R on August 02, 2005, 06:20:39 am
I'm guessing this probably more closely connected to the moment of inertia code...
Title: Faster moving debris?
Post by: FireCrack on August 02, 2005, 06:32:56 am
Moment of inirtia is for rotational momentum though...
Title: Faster moving debris?
Post by: IPAndrews on August 03, 2005, 07:05:18 am
Well the bits don't rotate either but that could bust because I didn't set the debris submodels as rotating in the pof.
Title: Faster moving debris?
Post by: NGTM-1R on August 03, 2005, 07:26:50 am
Moment of inertia isn't rotational; it effects how your ship gets knocked around by impacts from missiles, shockwaves, other ships, etc.

The Mars model was made back before Bob had the MoI code figured out. Quite a few mods from that period had weird behaviour relating to the MoI code.

Granting this is speculation, but here's what I think.

The B5 model is newer and has proper MoI for something of its size: that's why it blows up so rapidly. The Mars model doesn't have proper MoI; it's probably copied from a large stock FS ship, so it blows up at the same speed as a large stock FS ship...which is very slow for a planet-sized object.