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.

Author
Message
SageTech
19
Years of Service
User Offline
Joined: 3rd Dec 2004
Location: Orlando, Florida
Posted: 14th Jun 2008 04:41
Hi all,

First of all, I recently just took a look at the vehicle commands, and may I say, it takes the grunt work out of everything! The only problem is with using it in a Peer to Peer multi player environment. The best implementation I can think of is to allow the player in control of the car to use physics for it, then send the position of it to all the other players, who would then update with standard object position commands. But the phy sleep rigid body command doesn't seem to work on vehicles. Any ideas?


The world is doomed...unless you >>>>>> Click Here <<<<<<
Lukas W
21
Years of Service
User Offline
Joined: 5th Sep 2003
Location: Sweden
Posted: 14th Jun 2008 08:39
I'm not so familiar with multiplayer programming. But from what I think, you send packages containing information about player positions and angles. In other words, you wouldn't need to make a rigid body sleep.

Or maybe I didn't understand your question.
[/nothelpful]

I allways afraided from a clowns. aww..
SageTech
19
Years of Service
User Offline
Joined: 3rd Dec 2004
Location: Orlando, Florida
Posted: 14th Jun 2008 08:48
The problem is that only one person is controlling the vehicle, the other people in the game are merely seeing the position updates. So i need to be able to switch between controlling the vehicle with physics and simply positioning it according to the controlling player's packets.


The world is doomed...unless you >>>>>> Click Here <<<<<<
Lukas W
21
Years of Service
User Offline
Joined: 5th Sep 2003
Location: Sweden
Posted: 14th Jun 2008 09:30
Ahh, I think I understand what you mean:

Say you have one car and two players. You would take turns to drive the car. The one driving would have physics, the other would have basic position and rotation.

I get your point.

Would it work if you delete the rigid bodies when you are not driving and then recreate them (at the new position and angle) when you are going to drive?

Sorry I wasn't more helpful.

I allways afraided from a clowns. aww..
SageTech
19
Years of Service
User Offline
Joined: 3rd Dec 2004
Location: Orlando, Florida
Posted: 15th Jun 2008 05:16
Hmm, I guess Id have to do some tests to see how fast that is, if its anything like the delete object commands, its not feasible in real time, but maybee the PhysX system is more streamlined. Ill let you know what I find.


The world is doomed...unless you >>>>>> Click Here <<<<<<
sindore
20
Years of Service
User Offline
Joined: 2nd Jul 2004
Location: Bedfordshire, UK
Posted: 15th Jun 2008 13:31
SageTech why don`t you post your code, and ever one can help a bit better on this one.

plus you can play test at the same time, being an online game and all.

soul sucking devils, twisted body of the damed, slivering slim drips from ever poor, sin licking at your ears, and the smell stinging your eyes, and if you don't like it, get out of my kitchen!....
SageTech
19
Years of Service
User Offline
Joined: 3rd Dec 2004
Location: Orlando, Florida
Posted: 15th Jun 2008 19:09
sindore, I'm in the concept phase right now, so there really is no solid code, but Ive already decided to make my own vehicle system using rigid bodies, those i know for a fact can be positioned, even within the dark physics library. Look for my progress in the WIP boards, if I find an efficient way to do this ill be sure to share.


The world is doomed...unless you >>>>>> Click Here <<<<<<

Login to post a reply

Server time is: 2024-11-24 23:50:04
Your offset time is: 2024-11-24 23:50:04