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

ShapeHitResult

What a cast shape met: a ray’s hit, with the point on the cast shape that touched.

Property Modifier Type Description
colliderIndex readonly number The collider’s place in its entity’s collider list: 0 for a character’s capsule and for a ground’s terrain, edge walls and scatter, which no list names.
distance readonly number Metres along the direction from where it started.
entity readonly Entity The entity whose collider it met.
normal readonly ReadonlyVector3 The surface’s normal there, in world space, out of the collider met: zero for a collider the query started inside.
point readonly ReadonlyVector3 Where it met the collider, in world space.
witness readonly ReadonlyVector3 The point of the cast shape that touched, in world space, where the shape stood when it touched.