Package org.jbox2d.dynamics
package org.jbox2d.dynamics
The Dynamics module is the most complex part of jbox2d and is the part you likely interact with the most. The Dynamics module sits on top of the Common and Collision modules, so you should be somewhat familiar with those by now.
The Dynamics module contains:- fixture class
- rigid body class
- contact class
- joint classes
- world class
- listener classes
There are many dependencies between these classes so it is difficult to describe one class without referring to another. In the following, you may see some references to classes that have not been described yet. Therefore, you may want to quickly skim this chapter before reading it closely.
https://box2d.org/documentation/md__d_1__git_hub_box2d_docs_dynamics.html-
ClassDescriptionA rigid body.A body definition holds all the data needed to construct a rigid body.The body type. static: zero mass, zero velocity, may be manually moved kinematic: zero mass, non-zero velocity set by user, moved by solver dynamic: positive mass, non-zero velocity determined by forces, moved by solverDelegate of World.This holds contact filtering data.A fixture is used to attach a shape to a body for collision detection.A fixture definition is used to create a fixture.This proxy is used internally to connect fixtures to the broad-phase.This is an internal class.This is an internal structure.The world-class manages all physics entities, dynamic simulation, and asynchronous queries.