Methods
-
<static> collisionCircleCircle(p_c1, p_c2)
-
Computes whether two circles collide or not. If they collide, they are pulled apart and the speed is modified taking into account the principles of conservation of momentum and of conversation of energy.
Parameters:
Name Type Description p_c1ModelCircle p_c2ModelCircle Returns:
- Type
- Boolean
Type Definitions
-
ModelCircle
-
Type:
- Object
- Source:
Properties:
Name Type Description rnumber radius mnumber mass xnumber x position ynumber y position vxnumber x velocity vynumber y velocity