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.

Newcomers DBPro Corner / Real Physics in DarkBasic pro

Author
Message
souled
20
Years of Service
User Offline
Joined: 3rd Feb 2004
Location: Greece, Athens
Posted: 3rd Feb 2004 17:22
Problem: If a car would hit a crate, how the crate would react?
Hamish McHaggis
21
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 3rd Feb 2004 17:38
If you don't have a clue I suggest you don't try. Complex maths is the answer, easy answer is to use triganometry to determine at what angle from the cars velocity the crate is, and send it flying off at that angle.

Do you bite your thumb at me sir?
Athelon XP 1600 Plus (1.4ghz) - ATI Radeon 9600 Pro - 256mb RAM
souled
20
Years of Service
User Offline
Joined: 3rd Feb 2004
Location: Greece, Athens
Posted: 3rd Feb 2004 17:55
Is there a physics engine that could be used with dark basic? As the game industry uses Havok, shouldn't be there a freeware engine?
Hamish McHaggis
21
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 3rd Feb 2004 18:01
A physics dll is in development and should be released with U6 (i think) sometime this summer. It wont be freeware, but I'm sure it wont be expensive. TheDarthster also wrote a rigid body physics demo, I'm not sure that it was open source though.

Do you bite your thumb at me sir?
Athelon XP 1600 Plus (1.4ghz) - ATI Radeon 9600 Pro - 256mb RAM
Uber Krystoff
20
Years of Service
User Offline
Joined: 3rd Feb 2004
Location:
Posted: 4th Feb 2004 03:07
In the meantime you don't really need to use physics. If its a raceing game with the car moveing at high speeds, just make the box scripted so that as soon as you hit it, it has a predetermened responce.

256k ought to be enough for anybody
-Bill Gates
walaber
21
Years of Service
User Offline
Joined: 22nd Oct 2003
Location: Los Angeles, CA
Posted: 4th Feb 2004 04:31
try to think of a simple solution yourself, rather than relying on some kind of pre-made "engine". you'll be a better programmer for it.

Go Go Gadget DBPRO!

Athlon XP 2400+ || DDR-SDRAM 1GB || Nvidia Ti4200 AGP 8x 128MB

Login to post a reply

Server time is: 2024-11-26 03:47:38
Your offset time is: 2024-11-26 03:47:38