How to start with LWJGL physics.

Hello,

I’m thinking in start learning physics… I started to search stuff and I found lots of engines but I dont know that… I want to make my own physics…

So if someone is able to tell me some guide lines to start learning… btw using 3D lwjgl…

Thanks.

A 3D physics engine is really advanced; I’d recommend starting with 2D instead.

http://www.wildbunny.co.uk/blog/2011/04/06/physics-engines-for-dummies/


Check out Box2D or another physics engine for practical implementation:
Box2D
Fizzy
Phys2D

“Learn to walk before you run,” as the saying goes.

I can also recommend these articles. They helped me out a lot.

http://chrishecker.com/Rigid_body_dynamics

Thanks… :smiley:

I just sad 3D because I’m making a 3D game… I’ve already made the basic movement stuff and the obj import with textures now to move on I need the physics so u guys recommended to start with 2D I will :smiley:

One more time thanks

Isn’t movement a part of physics?
Are you saying you are going to use 2D physics in your 3D game or that you will learn 2D physics first?

Im new to this so Im abit confused…

Joaogl: I made a basic physics engine for a (2D) Asteroid type of game with bouncing asteroids and a tractor beam. It was so rewarding to when I saw even simple polygons behave like “real” objects. A childlike bliss! :slight_smile: Good luck!

Gamerulf: Yes, movement is part of physics but it can be more or less “real”. That is, if you want stuff to behave more like in the real world a simple “x++” won´t suffice. You´ll have to start to calculate how forces affects objects, how objects react in a collision and so on. I really recommend the links below. They are a good read if you have the time. Wildbunny and Chris Heckers articles taught me a lot.

And using 2D physics in a 3D world isn´t such a good idea since you have no depth. But even so, I think it´s a good idea to start out 2d just to get a grip of the concepts. When you get to the point that you need to solve collisions between multiple objects it´s pretty nice not to be bothered by that extra dimension I guess… :slight_smile:

LWJGL = OpenGL binding for Java.
OpenGL = 3D Rendering.
Rendering != Physics.

A good sign that you aren’t ready is if you don’t know what you’re talking about.

But anyway:

First things to do is to learn physics.
I assume by physics you really mean kinematics.
Use google to find articles on kinematics.
Once you learn the physics, then you should be able to make a physics engine easily.