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.

DLL Talk / ODE and players

Author
Message
Freddix
AGK Developer
22
Years of Service
User Offline
Joined: 19th Sep 2002
Location: France
Posted: 19th Jan 2006 00:20
Hello.

I made some tries and some search in the forum without success.

My problem is, that I don't manage to make a player walking on a ground similar to a matric without having him, rotate in various ways I don't want, and seeing it go through the ground and fall indefinitely.

I tried to add the ground object to static ode world using :

I've added as download my actual experiment source code.

If someone can help me... please.

All we have to decide is what to do with the time that is given to us.
dared
20
Years of Service
User Offline
Joined: 20th Nov 2004
Location:
Posted: 8th Feb 2006 19:24
what i'd do is keep the:
Rem Init DBPro
sync on : sync rate 60 : autocam off

Rem Init ODE
ode start : ode set world gravity 0,-10,0 : ode set world step 0.05
ode set world erp (0.2)*2.5 : ode set world cfm (10^-5)*2.5

but then:
make the player walk round using:
if keystate (w)=1 then move object 1,10
make jumping :
if space()=1 then move object up 1,11
then get the players current position make it so when they reach a certain hight it sends them down again.

Who Loves coding?
Any1?
Oh forget it!

Login to post a reply

Server time is: 2024-11-22 00:33:57
Your offset time is: 2024-11-22 00:33:57