blob: 96af5dc86c098cf5b79bcecb407ba8f4814dc85e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
/*
* Simple Mechanics Simulator (SiMS)
* copyright (c) 2009 Jakob Odersky
* made available under the MIT License
*/
package sims.collision
import sims.geometry._
import sims.dynamics._
/**A world detects its collisions through concrete implementations of this class.*/
abstract class Detector {
/**The world whose shapes are to be checked for collisions.*/
val world: World
/**Returns all collisions between shapes in the world <code>world</code>.*/
def collisions: Seq[Collision]
}
|