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.

417 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
  • 5,103
  • 11
  • 45
  • 58
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,136
  • 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,511
  • 2
  • 20
  • 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
  • 4,081
  • 9
  • 47
  • 64
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
  • 379
  • 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,410
  • 6
  • 43
  • 77
11
votes
1 answer

cannon.js registering collision without colliding

I'm creating simple car game with cannon.js and I'm struggling with this. What I want to do: When I run with car into another object (e.g. sphere) I want to know about it. For example increase score or whatever, but without applying forces to both…
martinerk0
  • 403
  • 1
  • 4
  • 17
11
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,413
  • 8
  • 45
  • 80
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
  • 382
  • 2
  • 20
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
  • 6,165
  • 6
  • 34
  • 35
8
votes
4 answers

How to make minimal example of matter.js work?

I'm trying to use the matter.js physics library. I'm using their "getting started" tutorial, but it can't find the canvas. Here is my html: Physics test