search

Interface myphysicslab.lab.engine2D.RigidBody

Provided By
All Extended Interfaces
All Known Implementations

A 2D rigid body with a specified geometry that can experience collisions and contact forces. A RigidBody handles the geometry calculations for intersections and collisions, as well as energy and momentum calculations.

Non-colliding RigidBodys

There are cases where RigidBodys should not collide with each other. For example, when there is a Joint between two RigidBodys. See #addNonCollide and #doesNotCollide

The Polygon class has a way of specifying a subset of Edges which do not collide with another Polygon. See myphysicslab.lab.engine2D.Polygon#setNonCollideEdge.

Instance Methods