Network and Movement Questions.

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

Network and Movement Questions.

Postby socom » Tue Nov 18, 2008 7:57 am

Hello, I have a few questions.

1, Is newton a good choice for server collison physics? Speed, etc..

2, someone who knows a smart and good way to do this, let's say a player is on the x (10), z (10) on the server side and client side is the x (15), z (15) , can you somehow move back this object when an update is called packet from the server with 10.10 as client moved smoothly into the right position as the server stated? So from x (15), z (15) to x (10), z (10) in a soft way.

Thank you very much.
while(your_engine > my_engine)
my_engine++;
socom
 
Posts: 6
Joined: Fri Dec 03, 2004 10:53 am

Re: Network and Movement Questions.

Postby socom » Tue Nov 18, 2008 12:23 pm

Like first we get the Position using GetBodyMatrix.

pCurrentPosition ( client side )

Server send the real position.

pRealPosition ( Client recv it )

Now like:

pNewPosition = ( pRealPosition - pCurrentPosition ) * speed * timestep

pObjPosition += pNewPosition.

Now m.SetTransform( pObjPosition ) on the obj to sync

Maybe something like that, I just try to explain how I mean, this will not work I just want to know how you guys do this, Smooth transform to the real position that the server send to sync objects on clients.

I hope anyone here understand what I mean.

Thanks!
while(your_engine > my_engine)
my_engine++;
socom
 
Posts: 6
Joined: Fri Dec 03, 2004 10:53 am


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 14 guests

cron