Skip to content

Files

Latest commit

 

History

History
20 lines (12 loc) · 965 Bytes

collision-resolve.markdown

File metadata and controls

20 lines (12 loc) · 965 Bytes

Collision.Resolve

  • 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