Re:Doom 3 source released
by metachris on Tuesday November 22, 2011 @05:59PM
(#3267833)
The source for the physics engine (https://github.com/TTimo/doom3.gpl/tree/master/neo/game/phys...) looks rather interesting. Might contain valuable additions for other physics engines to pick up.
[ Parent
| on HN ]
Re:Doom 3 source released
by Impossible on Tuesday November 22, 2011 @06:41PM
(#3267974)
IIRC the source for most of the physics engine has been available for years with the SDK. I think it only including rigid body dynamics and the constraint solver though, no collision code, so it's nice to have that part of it.
Re:Doom 3 source released
by barrettcolin on Wednesday November 23, 2011 @11:16AM
(#3270472)
I'm not sure where I picked up the info, and I haven't looked at the code to confirm it, but I believe the physics engine implementation is tied tightly to both the collision detection system and the entity update, both of which are quite specific to Doom (in particular, each entity steps physics independently, rather than a whole simulation advancing at once as is common in 'pluggable' physics engines like ODE, Havok etc).
Also, and this is subjective I suppose, I don't remember Doom 3 doing anything that 'felt' or looked better than even what the contemporaneous engines did (such as the version of Havok used in Half-Life 2).
So I guess, there probably aren't valuable additions, but I imagine there is much to tinker with.
Re:Doom 3 source released
by barrettcolin on Tuesday November 29, 2011 @11:12AM
(#3290852)
For the sake of completeness, here is where I read that: http://www.ode.org/old_list_archives/2004-December/014735.ht...
From looking at the game code, I see odd things like rolling barrels animating their rotation as though the physics engine itself doesn't handle rolling contact.