PDA

View Full Version : Physics proraming help (Java)


meow-muffin
04-02-2008, 03:31 PM
I was wondering what classes would be best for computing physics and visualizing it. I'm not sure but I think you'd use the swing API classes for most of the visualization and the math class for computing. please help me I'm still learning. :)

digitalmanifestation
04-10-2008, 09:32 AM
it would probably be a better idea to use a physics wrapper for java, i think there is already a java physics wrapper (physics engine). For 3D visualization you might need an open source rendering engine, a DX sdk for java (if it exists) or an openGL one, which deffo exists as Wurm uses java+openGL, i think java only has 2D graphical commands otherwise. I usually use blitz3D and ODE.

meow-muffin
04-10-2008, 10:32 PM
Nah, I'm interested in 2d game development.
Can you make your own classes?

digitalmanifestation
04-11-2008, 12:11 AM
i am assuming you can, although i still am learning about these things myself. Ima blitz noob atm but plan to move to c++ lateron.

Found this code so i guess u can create classes

public class Hello
{
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}

meow-muffin
04-11-2008, 05:19 AM
Oh yeah theres a chapter on that in my Java for dummies book. Would you lik eto try and team up on a game physics project some time? :)

Treacle109
04-12-2008, 04:40 PM
Hmmm that looks like C# except a bit diff lol... it would be like this in C#

public class helloworld (just an example btw)
{
public static void Main()
{
console.WriteLine("Hello world...");
}
}

meow-muffin
04-12-2008, 06:05 PM
C# is just a rip off of java that Microsoft stole.

Treacle109
04-12-2008, 10:29 PM
but javas written in C++? wich microsoft made wich is kinda weird lol

meow-muffin
04-12-2008, 10:49 PM
No, java's in bytecode isn't it? :confused:

Treacle109
04-12-2008, 11:10 PM
One sec and ill try and get where i found it... cant find the exact place but alot of people are debating about it on other sites lol, i think it was just the main compiler or something then?

meow-muffin
04-12-2008, 11:33 PM
It uses a Java virtual machine to run the bytecode not your computer so Its a bytecode based language.

LuizZak
06-01-2008, 04:53 AM
I don't even try to write java, too complex, but maybe you can find help in one of those development sites/forums (except this one xD)

And hey! Microsoft didn't ripped off JAva! They just made it better for beginners like me :D

Sporbie
06-01-2008, 10:13 AM
C# is just a rip off of java that Microsoft stole.

Not really...

But anyway I would be interested in making a Java game, I've been using it for a while now.

Also I haven't found any good Java physics engines besides JBox2d, but that is poorly made (it doesn't come as a .jar)

stone555
06-30-2008, 06:33 PM
If anything, J++ was a ripoff of Java. :)

geel9
06-30-2008, 06:51 PM
Oh yeah theres a chapter on that in my Java for dummies book. Would you lik eto try and team up on a game physics project some time? :)


I don't think Java for dummies will QUITE make you able to code physics.

meow-muffin
07-01-2008, 01:10 AM
why did you people bump this thread? I don't need any more help. :confused: