SiMS
|
|
sims/collision/GridDetector.scala
]
class
GridDetector(val override
world : World)
extends
DetectorDetector
. GridDetector
ermittelt
alle Kollisionen mit einem Gittersystem.Value Summary | |
val
|
collisionMethods
: scala.collection.mutable.ArrayBuffer[scala.PartialFunction[(Shape, Shape), Collision]]
Array von Kollisionsmethoden fuer Formenpaare.
|
val
|
detectionMethods
: scala.collection.mutable.ArrayBuffer[scala.PartialFunction[(Shape, Shape), Boolean]]
Array von Kollisionserkennungsmethoden fuer Formenpaare.
|
var
|
gridSide
: Double
Breite und Hoehe einer Gitterzelle.
|
Method Summary | |
def
|
colliding
(p : Pair) : Boolean
Gibt an, ob das Formenpaar
p kollidiert. |
def
|
collidingPairs
: scala.Seq[Pair]
Ergibt alle kollidierenden Paare.
|
def
|
collision
(p : Pair) : Collision
Gibt die Kollision des Formenpaares
p zurueck. |
def
|
collisions
: scala.Seq[Collision]
Ergibt alle Kollisionen.
|
def
|
getPairs
: scala.Seq[Pair]
Ergibt potenzielle Kollisionspaare der Welt
world . |
def
|
pairs
: scala.Seq[Pair]
Alle potentiellen Kollisionspaare der Welt.
|
Methods inherited from AnyRef | |
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
Methods inherited from Any | |
==, !=, isInstanceOf, asInstanceOf |
Value Details |
val
detectionMethods : scala.collection.mutable.ArrayBuffer[scala.PartialFunction[(Shape, Shape), Boolean]]
val
collisionMethods : scala.collection.mutable.ArrayBuffer[scala.PartialFunction[(Shape, Shape), Collision]]
var
gridSide : Double
Method Details |
p
kollidiert.p -
Formenpaar.p
zurueck.p -
Formenpaar.world
.
Ein Kollisionspaar ist ein Paar aus zwei verschiedenen Formen, das folgenden Bedingungen unterliegt:
SiMS
|
|