Uses of Class
collider.Collider
Package
Description
The package contains classes implementing a 'bounding box' area around game objects.
The package gameobjects contains all objects with a visual representation on screen.
-
Uses of Collider in collider
Modifier and TypeClassDescriptionclass
Collider for round objectsclass
aCollider
for Rectangles, usually used forRectObject
instances.Modifier and TypeMethodDescriptionCollider.setOffsets
(double dx, double dy) setter for offset values to be used relative to GameObject center. default is zero.Modifier and TypeMethodDescriptionboolean
CircleCollider.checkCollisionCircCirc
(Collider _c2) calculates the collission of this with other colliderboolean
RectCollider.checkCollisionRectCirc
(Collider other) checks collision with other Collider, which needs to be a CircleColliderboolean
RectCollider.checkCollisionRectRect
(Collider other) checks collision with other Collider, which needs to be a RectCollider, too.boolean
CircleCollider.collidesWith
(Collider other) abstract boolean
Collider.collidesWith
(Collider other) checks the collission with another collider instance.boolean
RectCollider.collidesWith
(Collider other) -
Uses of Collider in gameobjects
Modifier and TypeMethodDescriptionvoid
GameObject.addCollider
(Collider c) saves the collider in the internal list of Colliders to be used for this GameObject.Modifier and TypeMethodDescriptionvoid
GameObject.setColliders
(LinkedList<Collider> l) sets colliders.