Skip to content

Component Collider

Berke edited this page Jun 23, 2026 · 1 revision

Collider

The Collider component defines the physical collision shape and interaction behavior of an entity.


Enum

ColliderType

ColliderType.Sphere
ColliderType.Box

Defines the shape of the collider.


Properties

isValid

col.isValid

Returns whether the collider is valid.

Returns

boolean

type

col.type

Sets or gets the collider shape type.

Type

ColliderType

Example

col.type = ColliderType.Box

isActive

col.isActive

Enables or disables collision detection.

Returns

boolean

isTrigger

col.isTrigger

If true, collider acts as a trigger (no physical response).

Returns

boolean

Example

col.isTrigger = true

scale

col.scale

Size of the collider.

Returns

Vector3

stepSize

col.stepSize

Movement stepping resolution for collision checks.

Returns

number

Example Usage

local col = entity.collider

col.type = ColliderType.Sphere
col.isTrigger = false
col.scale = Vector3(1, 2, 1)

Clone this wiki locally