Homework #2: Collision Detection Between Rigid Bodies

Problem A: Implementation


Write a program to detect collisions among many sphere-like, `fat' polyhedra of different shapes and sizes flying inside a confined region (e.g. a cube, a table with boundary, etc); Each object is given an initial random velocity and angular velocity. The velocity stays the same unless an object hits an obstacle (e.g. a wall or another object), in which case a component of the velocity should be flipped so that the object stays within the confinement. State your assumptions about the objects! You may wish to reuse and modify the source code available at: http://gamma.cs.unc.edu/software/#collision

University of Maryland, College Park

© 2019 by Duotun