Page 1 of 1

Looking for help learning ODE in DP

Posted: Sun May 31, 2015 7:51 pm
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?

Re: Looking for help learning ODE in DP

Posted: Tue Jun 02, 2015 11:29 am
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

Re: Looking for help learning ODE in DP

Posted: Tue Jun 02, 2015 11:09 pm
by Error
Does model or map format matter with ODE?

Re: Looking for help learning ODE in DP

Posted: Wed Jun 03, 2015 3:09 am
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.