Collision detection between a Capsule and a Line Segment and a Capsule and a Capsule. Prerequisite: Linear Algebra (Vectors, Matrices, Dot Product, Cross Product ...
Although there are robust algorithms that calculate body mass, center of mass and inertia tensor based on input triangle mesh, there are several reasons why alternatives should be used when possible.