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
6
votes
1 answer

Calculate Impulse/Torque for both bodies in a 3D fix joint constraint

I have 2 rigid bodies (a & b) and 1 fix joint constraint (with relative transformation rela). My objectives are to achieve :- No. 1. b.transform = a.transform * rela No. 2. Center of mass (a+b) doesn't change. No. 3. (3rd Newton rule)…
javaLover
  • 6,039
  • 2
  • 14
  • 57
6
votes
2 answers

General purpose physics engine

Is there any general purpose physics engine that allows huge simulations of rigid bodies? I'm using PhysX from Nvidia, but the focus of this engine is game development, soft bodies. I want to know if exists physics engine that runs on top of PS3…
Lucas
  • 2,861
  • 5
  • 29
  • 45
6
votes
2 answers

Basics of D3's Force-directed Layout

I'm plowing into the exciting world of force-directed layouts with d3.js. I've got a grasp of the fundamentals of d3, but I can't figure out the basic system for setting up a force-directed layout. Right now, I'm trying to create a simple layout…
Alex
  • 1,453
  • 12
  • 21
5
votes
1 answer

No collision is detected in n-body simulation using ReactPhysics3D

I am currently working on n-body simulation using ReactPhysics3D(https://www.reactphysics3d.com/). I made simple simulation of collision of two spheres. Then, I print the coordinates of the two spheres as the simulation runs. The problem is that…
tesio
  • 391
  • 1
  • 3
  • 10
5
votes
3 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