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 / phyx applet for a pro

Author
Message
RYD
17
Years of Service
User Offline
Joined: 29th Apr 2008
Location: realspace
Posted: 13th May 2009 15:07
can anyone get a way to use theese applets in a way that it can be dark phyx for dbc
http://www.falstad.com/mathphysics.html

i mean the physx ones

ARM YOURSELF WITH KNOLEGE
Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 13th May 2009 16:01
Well, it seems the code would have to be converted from Java to DBC. It could be done, but it might be a lot of work.

Perhaps the route would be to start with basic physics equations and write them directly as functions for DBC and then build from there. For example:

a=F/m
acceleration of a body = force applied divided by the mass of the body

in DBC the function might look like



And you could juggle it around to solve for other parts of the equation that you might not know:



Now you have the startings of a physics library 100% DBC compatible; and so far will work in both 3d and 2d.

Enjoy your day.
Dark Dragon
17
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 16th May 2009 19:07
Interesting latch.
will have a go, seeing as i failed last time.....

Your signature has been erased by a mod because it was too big.
BN2 Productions
21
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 17th May 2009 01:54
Quote: "and so far will work in both 3d and 2d.
"


Don't forget that you will need to break it into components before doing anything with the values!

Great Quote:
"Time...LINE??? Time isn't made out of lines...it is made out of circles. That is why clocks are round!" -Caboose
Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 17th May 2009 02:41
where have you been DD?

Enjoy your day.

Login to post a reply

Server time is: 2025-05-15 03:54:38
Your offset time is: 2025-05-15 03:54:38