Collider

indigo.physics.Collider
See theCollider companion object
enum Collider[A]

Attributes

Companion
object
Graph
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
class Circle[A]
class Box[A]

Members list

Type members

Enum entries

final case class Box[A](tag: A, bounds: BoundingBox, mass: Mass, velocity: Vector2, terminalVelocity: Vector2, restitution: Restitution, friction: Friction, static: Boolean, canCollideWith: A => Boolean, onCollisionWith: (Collider[A]) => Batch[GlobalEvent]) extends Collider[A]

Attributes

Companion
object
final case class Circle[A](tag: A, bounds: BoundingCircle, mass: Mass, velocity: Vector2, terminalVelocity: Vector2, restitution: Restitution, friction: Friction, static: Boolean, canCollideWith: A => Boolean, onCollisionWith: (Collider[A]) => Batch[GlobalEvent]) extends Collider[A]

Attributes

Companion
object

Value members

Concrete methods

def *(value: Vector2): Collider[A]
Extension method from Collider
def +(value: Vector2): Collider[A]
Extension method from Collider
def -(value: Vector2): Collider[A]
Extension method from Collider
def /(value: Vector2): Collider[A]
Extension method from Collider
def center: Vertex
Extension method from Collider
def collidesWith(tagTest: A => Boolean): Collider[A]
Extension method from Collider
Extension method from Collider
def hitTest(other: Collider[A]): Boolean
Extension method from Collider
def isStatic: Boolean
Extension method from Collider
Extension method from Collider
Extension method from Collider
def moveBy(amount: Vertex): Collider[A]
Extension method from Collider
def moveBy(x: Double, y: Double): Collider[A]
Extension method from Collider
def moveBy(amount: Vector2): Collider[A]
Extension method from Collider
def moveTo(newPosition: Vertex): Collider[A]
Extension method from Collider
def moveTo(x: Double, y: Double): Collider[A]
Extension method from Collider
def moveTo(newPosition: Vector2): Collider[A]
Extension method from Collider
def onCollision(produceEvents: (Collider[A]) => Batch[GlobalEvent]): Collider[A]
Extension method from Collider
Extension method from Collider
def reflect(ray: LineSegment): Option[ReflectionData]
Extension method from Collider
def withFriction(value: Friction): Collider[A]
Extension method from Collider
def withMass(value: Mass): Collider[A]
Extension method from Collider
def withPosition(value: Vertex): Collider[A]
Extension method from Collider
def withPosition(x: Double, y: Double): Collider[A]
Extension method from Collider
Extension method from Collider
Extension method from Collider
def withTerminalVelocity(x: Double, y: Double): Collider[A]
Extension method from Collider
def withVelocity(value: Vector2): Collider[A]
Extension method from Collider
def withVelocity(x: Double, y: Double): Collider[A]
Extension method from Collider
def ~==(other: Collider[A])(using CanEqual[A, A]): Boolean
Extension method from Collider