Why vehicles stop moving immediately after explosion?

General discussion of the Project Reality: BF2 modification.
Post Reply
User avatar
bad_nade
Support Technician
Posts: 1500
Joined: 2008-04-06 18:26
Location: Finland

Why vehicles stop moving immediately after explosion?

Post by bad_nade »

Just to make sure. Is this BF2 engine problem?

When car or jet moving at full speed gets destroyed, it will stop right there no matter the amount of kinetic energy it had just before explosion.

Normally vehicles just lose their propulsion and start decelerating after being destroyed. That is because most of the mass is still there so laws of physics apply to smoking wrecks too.
Feenan.
Posts: 108
Joined: 2008-04-16 15:40

Re: Why vehicles stop moving immediately after explosion?

Post by Feenan. »

Yes if i were to guess i would say its beacuse after it is destroyed it turns into a static object with no physics, whether you can code physics for the destroyed vehicle models i have no idea
Rhino
Retired PR Developer
Posts: 47909
Joined: 2005-12-13 20:00

Re: Why vehicles stop moving immediately after explosion?

Post by Rhino »

Feenan. wrote:Yes if i were to guess i would say its beacuse after it is destroyed it turns into a static object with no physics, whether you can code physics for the destroyed vehicle models i have no idea
if it had no physics it wouldn't fall out the sky and then crash on the ground :p

Dunno if there's any way of getting the wreck to keep the speed, it keeps some but ehhh, ye, its a bf2 thing :p
Image
Scot
Posts: 9270
Joined: 2008-01-20 19:45

Re: Why vehicles stop moving immediately after explosion?

Post by Scot »

Also its not that needed and does kind of support kamikaze!!
Image
MrD
Posts: 3399
Joined: 2006-05-13 16:21

Re: Why vehicles stop moving immediately after explosion?

Post by MrD »

That would be another useful weapon in my arsenal :)
Image
[R-MOD]Mongolian Dude:
AH man, sarcasm is so hard to get across the web, even if we are both british :(
[R-DEV]Jaymz: That has to be...the most epic response to a welcome thread I have ever seen. [R-CON]Mr.D ladies and gentlemen!
zangoo
Posts: 978
Joined: 2007-09-01 03:42

Re: Why vehicles stop moving immediately after explosion?

Post by zangoo »

Cas has been messing around with a inertia modifier with the planes wreck to try to make them keep speed but iirc he didnt have much luck with that.
Ballistics or Tracers? Please Vote
[DM] member, We are now recruiting!
Xfire:Zangoo
Cronyx
Posts: 12
Joined: 2008-08-02 07:33

Re: Why vehicles stop moving immediately after explosion?

Post by Cronyx »

I'm pretty sure the reason this is happening is because of the way wrecks are handled. The wrecked form isn't a modification of the original entity; it's an entirely new entity. The way the engine handles it is to completely remove the vehicle entity at zero HP and in the next tick, spawn the associated new entity (wrecked version of the model) at that exact XYZ coordinate. However when the game spawns it in, the new entity has no bias physics associated with it, it simply appears there. Therefore, any physics associated with the previous entity (momentum, etc) are lost and don't apply to the new entity. A lot of older games do it this way.

At least this is how I am to understand it...
Image
Post Reply

Return to “PR:BF2 General Discussion”