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.

DarkBASIC Discussion / New Physics Engine for Vehicles

Author
Message
PolyVector
22
Years of Service
User Offline
Joined: 10th Mar 2003
Location: Ghetto Land
Posted: 12th Mar 2003 23:39
Hallo, I'm working on this physics engine for vehicles in a game...You can take a look at it here http://http://www.geocities.com/vomi_land/Physics.zip
and if that doesn't work i think you can log onto my geocities account and get it thru the file manager...
User:vomi_land
Pass:password

Okay, now here's where I REALLY need help...
This game is to be multiplayer but I have no idea how to tell the other computers the rotation of the car since it's all calculated with free-flight commands. As you'll see I started a sad attempt at an XYZ version to solve this... "gimbal lock" or whatever sucks so I gave up...

I've tried EVERYTHING my little brain can... so any info would be a great help
PolyVector
22
Years of Service
User Offline
Joined: 10th Mar 2003
Location: Ghetto Land
Posted: 12th Mar 2003 23:40
Ops!...hehehe...here's the link
[href]www.geocities.com/vomi_land/Physics.zip[/href]

AnalSauceMonkey
22
Years of Service
User Offline
Joined: 24th Oct 2002
Location: I can't find myself
Posted: 13th Mar 2003 01:20
I hope you realize you will have to change your password if you don't want your site deleted.

AnalSauceMonkey
22
Years of Service
User Offline
Joined: 24th Oct 2002
Location: I can't find myself
Posted: 13th Mar 2003 01:20
Not that I would do such a thing.

PolyVector
22
Years of Service
User Offline
Joined: 10th Mar 2003
Location: Ghetto Land
Posted: 13th Mar 2003 06:52
LOL...yeah, I just was getting around bandwidth limitations....I don't care about that account...just made it for this file
thanks for the warning tho'...LOL
anyways...

UPDATE:
I have solved this problem... I found a sneaky way of...hmmm
how to describe it...
since it's imposible to convert free-flight to xyz...i figured out a way of mapping out "directions"...it's 3 instructions on how to get to any free-flight position...

The Darthster
22
Years of Service
User Offline
Joined: 25th Sep 2002
Location: United Kingdom
Posted: 13th Mar 2003 19:01
I think it's possible to map free flight to zyx however. It works quite well in my 'cave flying' demo.

Once I was but the learner,
now, I am the Master.
arras
22
Years of Service
User Offline
Joined: 3rd Feb 2003
Location: Slovakia
Posted: 13th Mar 2003 19:42
Try to make parent object hide it, glue your oject to it and rotate parent object in x axis and your object in y and z axis.
Thats what I did and its functioning

Zigma
22
Years of Service
User Offline
Joined: 5th Feb 2003
Location:
Posted: 14th Mar 2003 00:21
?

And were is the engine?
I'm looking fore an physic engine fore DB. so this sounds exiting, but no engine in your Zipp file.
Shadow Robert
22
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 14th Mar 2003 00:38
wow just got to check this out... some of the best physics i've seen for a good long time

if you like i have a BMW model, i'd love for SOMEONE to actually make use of it - email me and i'll send it to you with the technical data.

i think perhaps when you get off from using a matrix and start using real collision points - perhaps allow the car to actually flip fully rather than the current if < Nth degree then adhear to the matrix of the current setup.
but an impressive starting point

Tsu'va Oni Ni Jyuuko Fiori Sei Tau!
One block follows the suit ... the whole suit of blocks is the path ... what have you found?
PolyVector
22
Years of Service
User Offline
Joined: 10th Mar 2003
Location: Ghetto Land
Posted: 14th Mar 2003 05:05
-Thanks Darthster and Arras... I think I know of that technique and it's very usefull for some games...I believe it's called "YXZ" or "modified free-flight rotation"... however... it suffers from a problem known as gimbal lock(spelling?) and it's demonstraited in my XYZ demo (should have called it YXZ)... As I said I solved the problem already by "mapping out" free-flight directions... but you are right...that would solve the network problem too...

-Zigma, I'll consider releasing the engine source as donation-ware (I'm poor hehehe) when it's done... But it's FAR too early and messy... I'd feel naked

-Thanks Raven!, Maybe I misunderstand what you're suggesting... I believe in the 2 free-flight demos you can flip in any direction fully... About your BMW model.. I'd love any models of vehicles or people...or...whatever... please send them to [email protected] with you're full name (or nick) and I'll give you credit if this game is ever finished... Also mention if you're not the actual creator of the model (wouldn't wanna make someone mad)
LoL, I'm acting like this game is gunna be big
Thanks everyone!

bitJericho
22
Years of Service
User Offline
Joined: 9th Oct 2002
Location: United States
Posted: 14th Mar 2003 06:21
wow thats a cool little demo...cant wait till the source is released ill make a fancy little arcade racer^_^
Shadow Robert
22
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 14th Mar 2003 07:08
well the source is still rough poly ... i mean play the XYZ FreeFlight w/gravity for a while just have a go at some of the smaller hills - you'll notice as you fall to the side, rather than rolling when it hit the matrix it immediatly conforms to the nearest gradient of the matrix.

would be cool if it rolled, i'll send the model in a min ... i wouldn't send you a model if it wasn't my own work - i'd tell you whereto download it if that was the case.

ya know the demo actually reminds me of that Spider Tank from Dominion Tank Police - that's be cool to use in a game wouldn't it

Tsu'va Oni Ni Jyuuko Fiori Sei Tau!
One block follows the suit ... the whole suit of blocks is the path ... what have you found?
PolyVector
22
Years of Service
User Offline
Joined: 10th Mar 2003
Location: Ghetto Land
Posted: 14th Mar 2003 07:57
oh I get what yer saying now Raven... yeah, there's about 1 line of code keeping the body from going thru the ground...

The wheel code is actually inspired from grand theft auto 3... I spent like an hour just driving and staring at the wheels... one thing i noticed is that if the suspension is fully compressed in one frame and then off the ground in the next frame...there is absolutely no transition... they just conform to ground... that may seem cheap (and it is) but it's not very noticable in a complete game with actual car models (not just a dinky cube)... Which reminds me... I'm looking forward to you're BMW model

au revior

Login to post a reply

Server time is: 2025-05-15 22:45:59
Your offset time is: 2025-05-15 22:45:59