Looking for help learning ODE in DP

Discuss programming in the QuakeC language.
Post Reply
Error
InsideQC Staff
Posts: 865
Joined: Fri Nov 05, 2004 5:15 am
Location: VA, USA
Contact:

Looking for help learning ODE in DP

Post by Error »

I've been trying to find examples on how to use ODE physics extension in Darkplaces and can't find any. Are there any resources or tutorials available anywhere?
toneddu2000
Posts: 1395
Joined: Tue Feb 24, 2009 4:39 pm
Location: Italy

Re: Looking for help learning ODE in DP

Post by toneddu2000 »

1)on Windows rename libode-3,dll to libode1.dll or it won't work.
2)After launch dp, check if ode physics is enabled (physics ode 1)
3)you can have a introduction reading here
4)switch to fte and start using REAL ode capabilities! :D

basically, on SSQC (dp doesn't have CSQC physics, fte does) you can do something like

Code: Select all

void myphysent()
{
local entity e = spawn;
setmodel(e,"models/barrel.iqm");
setsize(e,'-32 -32 -64','32 32 64');
physics_enable (e,TRUE);
e.movetype = MOVETYPE_PHYSICS;
e.solid = SOLID_PHYSICS_BOX;
e.mass = 1.2;//1 should be the standard
}
place your myphysent in your map about 60 units from above and it *SHOULD*, if I didn't commit any typo, fall on the ground.

In these days I should (hopefully) upload v0.2 version of fteskel which has working ODE ragdolls (yay :P )

##EDIT: ODE user guide
Meadow Fun!! - my first commercial game, made with FTEQW game engine
Error
InsideQC Staff
Posts: 865
Joined: Fri Nov 05, 2004 5:15 am
Location: VA, USA
Contact:

Re: Looking for help learning ODE in DP

Post by Error »

Does model or map format matter with ODE?
Error
InsideQC Staff
Posts: 865
Joined: Fri Nov 05, 2004 5:15 am
Location: VA, USA
Contact:

Re: Looking for help learning ODE in DP

Post by Error »

Thank you. It works. The renaming of the file is why it wouldn't work.

Trying to figure out joints and hinges and such now.
Post Reply