Forum

Looking for help learning ODE in DP

Discuss programming in the QuakeC language.

Moderator: InsideQC Admins

Looking for help learning ODE in DP

Postby Error » Sun May 31, 2015 7:51 pm

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?
User avatar
Error
InsideQC Staff
 
Posts: 865
Joined: Fri Nov 05, 2004 5:15 am
Location: VA, USA

Re: Looking for help learning ODE in DP

Postby toneddu2000 » Tue Jun 02, 2015 11:29 am

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
toneddu2000
 
Posts: 1301
Joined: Tue Feb 24, 2009 4:39 pm
Location: Italy

Re: Looking for help learning ODE in DP

Postby Error » Tue Jun 02, 2015 11:09 pm

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

Re: Looking for help learning ODE in DP

Postby Error » Wed Jun 03, 2015 3:09 am

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.
User avatar
Error
InsideQC Staff
 
Posts: 865
Joined: Fri Nov 05, 2004 5:15 am
Location: VA, USA


Return to QuakeC Programming

Who is online

Users browsing this forum: No registered users and 1 guest