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

SlideRecord

What one moveAndSlide call read and wrote. Made by createSlideRecord, and written in place by every call that slides.

Property Type Description
body number The Rapier handle of the body it moved: a body built again is another.
clear boolean Whether no collider that moves stood within the slide’s reach when it ran.
deltaSeconds number -
entity Entity | null The body it records.
fixedChanges number The handle’s fixedChanges when it ran: a change of any body’s shapes, places or layers, the mover’s own included.
floorCosine number -
floorSnapDistance number -
handle PhysicsHandle | null -
high Vector -
hitCount number -
hits MoverHit[] -
kind Slide -
low Vector The corners of the box every query of the slide stays in.
maxSlides number -
position Vector The body’s pose after the call.
refused boolean Whether the last run of its call read what the record read, bit for bit, and slid anyway because the record is tied.
result MoveAndSlideResult The call’s result, its hits apart: the first hitCount of hits.
reused boolean Whether the last run of its call took it rather than sliding.
rotation Rotation -
rotationAfter Rotation -
skin number The gap a slide keeps off what it meets, physicsSettings.offset.
startPosition Vector The body’s pose before the call, as Rapier holds it.
startRotation Rotation -
tied boolean Whether one of the slide’s queries met two colliders at once, the same distance away, or its recovery pushed out of two at once: the query tree’s order picked the answer, so the record is never taken.
turns boolean -
up Vector -
valid boolean Whether it holds a slide.
velocity Vector The call’s options, as the slide reads them: up normalized, the steepest floor as its cosine, maxSlides capped.