Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Basic Physics in openGL  (C++)

Posted on 2003-02-20
Medium Priority
Last Modified: 2012-08-14
I am trying to write a very basic physics engine for simple 3d objects such as cubes.  I only intend to use gravity, collision detection, and possibly thrust.  This isnt for a game, just for experimentation.  My problem is that I have no clue where to start.  If anyone could explain the basic way to implement physics into a 3d environment or has a link to a site that does, that would be great.
Question by:mgeeps
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Accepted Solution

joachimc earned 200 total points
ID: 7992207
I would check the Physics tutorials at

Gravity is pretty simple to implement. asume you have a vector moving up (0, 10, 0) with this speed.

The gravity here on earth is 10 M/S ^ 2 (asuming that you have no recistance like air :). This means after one second your upward motion will stop and you start to fall. Then the speed will increase with time.

Thrust is also just to add a vector to your current position. The trick here is to add the vector in the direction you want to move. Normally your objects z+.

Collision you can look at in the turorials :)=


Expert Comment

ID: 7997003
You could try this book from amazon as an introduction?


Author Comment

ID: 8002398
Thank you very very much. The tutorials are a big help and I've got some connections at amazon so I'll see if I can't get a hold of that book.

Expert Comment

ID: 8046034
also try

its a site with lots of opengl game/engine creation tutorials

Expert Comment

ID: 9464263
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
Post your closing recommendations!  No comment means you don't care.

Featured Post

Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Artificial Intelligence comes in many forms, and for game developers, Path-Finding is an important ability for making an NPC (Non-Playable Character) maneuver through terrain.  A* is a particularly easy way to approach it.  I’ll start with the algor…
Recently, in one of the tech-blogs I usually read, I saw a post about the best-selling video games through history. The first place in the list is for the classic, extremely addictive Tetris. Well, a long time ago, in a galaxy far far away, I was…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question