blob: 29af3bed403214e3b6c7b0e87d0432bab8d10be5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
/* _____ _ __ ________ ___ *\
** / ___/(_) |/ / ___/ |__ \ Simple Mechanics Simulator 2 **
** \__ \/ / /|_/ /\__ \ __/ / copyright (c) 2011 Jakob Odersky **
** ___/ / / / / /___/ / / __/ **
** /____/_/_/ /_//____/ /____/ **
\* */
package sims.collision
import sims.math.Vector2D
/** Contains information on the collision between two collidable items. */
abstract class Collision[A <: Collidable] {
val item1: A
val item2: A
def normal: Vector2D
def points: Seq[Vector2D]
def overlap: Double
}
|