Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Collider

A collider represents the abstraction of a physics collider object on the host.

Hierarchy

  • Collider

Implements

Index

Properties

bounciness

bounciness: number = 0

dynamicFriction

dynamicFriction: number = 0

enabled

enabled: boolean = true

geometry

geometry: Readonly<ColliderGeometry>

isTrigger

isTrigger: boolean = false

layer

layer: CollisionLayer = CollisionLayer.Default

staticFriction

staticFriction: number = 0

Accessors

eventSubscriptions

  • get eventSubscriptions(): ColliderEventType[]

Methods

offCollision

offTrigger

onCollision

onTrigger