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.

Dark Physics & Dark A.I. & Dark Dynamix / DarkPhysics - Timerbased movement

Author
Message
Hayer
19
Years of Service
User Offline
Joined: 4th Nov 2005
Location: Norway
Posted: 22nd Feb 2009 17:54
Hi!

For timerbased movement I use a

loop start:
newtime = timer()
deltatime = newtime - oldtime

loop end:
oldtime = newtime

My whole engine/game/whatever is based on that. How would I go on and implent that with DarkPhysics?

Keep it simple.
Questions? Mail me
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 22nd Feb 2009 18:29 Edited at: 22nd Feb 2009 18:33
personally I like using this.



Depends on what you hope to do with physX. I'd get the main bit to work first then put your timer in.

edit
physX cannot really be timer-movement base as that would defeat the the physx, in most cases physx will go as fast as the users machine,have not see away that can control that yet.

Dark Physics makes any hot drink go cold.
Hayer
19
Years of Service
User Offline
Joined: 4th Nov 2005
Location: Norway
Posted: 23rd Feb 2009 13:27
Well, that is pretty unbelivable.

I'm at school right now so I cant check the commands but if I remember right it says something about

phy set timing

If that isnt for timerbased movement what is it for then?

Keep it simple.
Questions? Mail me

Login to post a reply

Server time is: 2024-11-24 20:04:19
Your offset time is: 2024-11-24 20:04:19