Questions tagged [physics-engine]

A physics engine is computer software that provides an approximate simulation of certain physical systems, such as rigid body dynamics (including collision detection), soft body dynamics, and fluid dynamics, of use in the domains of computer graphics, video games and film.

A physics engine is computer software that provides an approximate simulation of certain physical systems, such as rigid body dynamics (including collision detection), soft body dynamics, and fluid dynamics, of use in the domains of computer graphics, video games and film. It is the Physics engine that creates realistic effect of something physical interacting with the environment in video games and simulations, from collision of a car in a wall to football kicked by the player and bouncing off the ground.

365 questions
21
votes
6 answers

Are there any decent physics engines for Android?

I've looked around for a physics engine that will play nicely with Android, but I've only been disappointed. In terms of performance, I had heard that jbox2d was the best bet, but (from my understanding) ever since Android SDK V1.0, the Dalvik VM's…
Marc
  • 2,593
  • 2
  • 18
  • 21
20
votes
6 answers

Bullet vs Newton Game Dynamics vs ODE physics engines

I am trying to pick a physics engine for a simple software application. It would be to simulate a rather small number of objects so performance isn't a huge concern. I am mostly concerned with the accuracy of the motion involved. I would also…
Anon
  • 4,793
  • 9
  • 41
  • 56
18
votes
3 answers

How does a physics engine actually simulate physics?

This question may be a stupid question, but I'm really curious. After playing games like HL2, GMod, or Angry Bird, and using physics libraries like Box2D, I began to wonder "how a physics engine simulates physics?" Like lexer and parser are used to…
JiminP
  • 2,036
  • 19
  • 26
15
votes
1 answer

Slick2D and JBox2D. How to draw

Before asking this i did A LOT of searching on the net. I just can't do it. It's a little hard for me to understand. So how do i draw the images at the right screen positions coresponding to bodies in world position? Thanx. If anyone else finds…
Romeo
  • 376
  • 1
  • 3
  • 14
14
votes
2 answers

Is there an upper limit on velocity when using box2d?

I'm using box2d for physics simulation. I'm moving a circle using arrow keys by applying impulse on the body when ever a key is pressed. Unfortunately, the circle moves excruciatingly slow and doesn't seem to accelerate like a true physical body is…
ivymike
  • 1,391
  • 2
  • 17
  • 27
13
votes
5 answers

android physics engine

After looking into 3D game programming, it quickly became evident why a physics engine could be extremely useful. What physics engines are supported by and viable on Android? Any other advice regarding them would be nice. Thanks
Prime
  • 3,605
  • 9
  • 43
  • 63
11
votes
1 answer

How to stop the forces acting on a body in box2d

I am using box2d on the iphone to create a game. I have a body that is effected by gravity to move down and not right or left. It will get hit by another body and will then be moving right or left. I then have a reset button which moves the body…
user891123
  • 359
  • 2
  • 5
  • 16
11
votes
5 answers

Is there a water physics engine for javascript?

I want to make a demo using javascript and , I was thinking of doing a little moving creature, seen from the top and swimming in a water environment. Concept "art" : Is there something I can use to start this project, or do I need to create…
Manu
  • 4,078
  • 4
  • 37
  • 74
9
votes
2 answers

4d and n-dimensional physics engine

Was somebody trying to implement 4d or n-dimension physics realtime (or not) engine? What difficulties in this implementation, compare to 3d and 2d physics engines? Of course, one of which is presentation problem. Is's an interesting to look at and…
Ivan Kochurkin
  • 4,062
  • 7
  • 41
  • 70
9
votes
1 answer

Beginning physics simulation

I just finished taking an independent study course for CS282 - Computer Physics Simulation. It was the first time it was offered at the college I'm attending. The textbook was "Game Physics Engine Development: How to Build a Robust Commercial-Grade…
LavaHot
  • 293
  • 2
  • 19
8
votes
1 answer

How do you simulate a conveyor in bullet physics engine?

I am writing a simulation in which we need some boxes to be fairly accurately modeled as they move on a set of conveyors. Currently we detect if the box is colliding with the static conveyor surface and apply an impulse to each box according to…
Matthew Smith
  • 5,815
  • 6
  • 32
  • 34
7
votes
2 answers

Centroid of convex polyhedron

I have a closed convex polyhedron which is defined by an array of convex polygons (faces) which are defined by arrays of vertices in 3D space. I'm trying to find the centroid of the polyhedron, assuming uniform density. At the moment I calculate it…
null0pointer
  • 1,513
  • 3
  • 15
  • 29
7
votes
1 answer

What's the basic ideas of *continuous physic simulation* like box2d/bullet3d?

Traditional physics simulation in games or graphics industry was basically discrete. But engines nowadays such as box2d or bullet3d implement continuous physics simulation. I know basic principles of discrete simulation, but I have no idea about…
eonil
  • 75,400
  • 74
  • 294
  • 482
7
votes
3 answers

How to handle multiple simultaneous elastic collisions?

I'm computing the result by colliding pairs of 2D convex objects (without rotation), using the basic equations on wikipedia. However, when there are dependencies, like two objects hitting another object at the same time: Such as here, with objects…
6
votes
1 answer

minimum-size Vec3 that move Physics object to make penetration = 0

Here is an example (see image) :- The 2 reddish rectangles are static objects (i.e. it can't move). The bluish ball is dynamic object. So far, I manage to get all penetrating information. Let's consider it as our input:- To…
1
2 3
24 25