Collider

indigo.physics.Collider
See theCollider companion enum
object Collider

Attributes

Companion
enum
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Collider.type

Members list

Type members

Classlikes

object Box

Attributes

Companion
enum
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Box.type
object Circle

Attributes

Companion
enum
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Circle.type

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def apply[A](tag: A, bounds: BoundingCircle | BoundingBox): Collider[A]

Extensions

Extensions

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