blob: 96af5dc86c098cf5b79bcecb407ba8f4814dc85e (
plain) (
tree)
|
|
/*
* 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]
}
|