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

ColliderOptions

One collider of a body, of a shape Shape allows.

Type Parameter Default type
Shape extends ColliderShape ColliderShape
Property Type Description
collisionLayer? CollisionLayerHandle The layer this collider stands in, over its body’s.
collisionMask? CollisionMask The layers this collider meets, over its body’s.
material? MaterialOptions -
offset? Triple Metres from the entity’s origin, along its own axes, scaled with it.
rotation? RotationInput How it is turned in the entity’s axes.
shape Shape Made by a helper: box, sphere, capsule, cylinder, cone, convexHull, triangleMesh, heightfield or voxels.
trigger? boolean A trigger touches nothing and stands where others pass, as Unity’s isTrigger.