Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

ColliderChanges

ColliderChanges = Partial<Omit<ColliderOptionsBase, "collisionLayer" | "collisionMask">> & object & Partial<SolidColliderOptions> | Partial<OneWayColliderOptions>

What setCollider changes: any of a collider’s settings, its own layer and mask null to take its body’s again. A change that makes a collider one-way names no trigger and no shape that is not convex, as a declaration does.

Name Type
collisionLayer? CollisionLayerHandle | null
collisionMask? CollisionMask | null