Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / ODE Problems

Author
Message
Oolite
18
Years of Service
User Offline
Joined: 28th Sep 2005
Location: Middle of the West
Posted: 23rd Apr 2006 15:02
I was in the process of trying to make a basic FPS engine in DBPro and i wanted it to use proper physics, i gave newton a try but its more complex then i thought and i don't have much time to try and learn it, so i chose ODE, with help from the codebase and code snippets i got a basic engine set up but my box doesn't react properly, i used the mass and friction technique from a recent code snippet that works fine but it doesn't seem to work on mine, the box just slides until it falls off into oblivion, any ideas?



Oolite
18
Years of Service
User Offline
Joined: 28th Sep 2005
Location: Middle of the West
Posted: 24th Apr 2006 21:06
anyone?
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 24th Apr 2006 23:24
Line 41, you need to change the object number to 10. It's set to 4, you aren't actually setting the friction for object 10 right now!

ode set contact fdir1 10,1+rnd(5)

Oolite
18
Years of Service
User Offline
Joined: 28th Sep 2005
Location: Middle of the West
Posted: 25th Apr 2006 13:52
Cheers!
Silly mistake!

Login to post a reply

Server time is: 2024-09-24 21:40:48
Your offset time is: 2024-09-24 21:40:48