-
outside (out_position: Vec2, out_velocity: Vec2, penetration_depth: Number, mtv: Vec2)
Keep your object outside the other
- linear (out_a_velocity: Vec2, a_restitution: Number, a_imass: Number, a_point: Vec2, out_b_velocity: Vec2, b_restitution: Number, b_imass: Number, b_point: Vec2, normal: Vec2): Boolean
-
elastic (a_pos: Vec2, out_a_velocity: Vec2, a_mass: Number, b_pos: Vec2, out_b_velocity: Vec2, b_mass: Number)
Perform a fully elastic collision between the two objects
reference: http://en.wikipedia.org/wiki/Elastic_collision
source: https://github.com/benmurrell/node-multiplayer-asteroids