Computational Particle Mechanics