Collision

io.github.srs.utils.collision.Collision
object Collision

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Collision.type

Members list

Extensions

Extensions

extension (e: Entity)
def collidesWith(other: Entity): Boolean

Checks if this entity collides with another entity.

Checks if this entity collides with another entity.

Value parameters

other

the other entity to check for collision against this entity.

Attributes

Returns

true if the two entities collide, false otherwise.