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

launchFlight

launchFlight(writer, ball, velocity, launchFlightOptions?): void

Launches ball, whose body has a flight, at velocity metres a second from where its flight stands at the step’s tick, or from position: the record every world computes its flight from, written with its transform and its body at once, so a query later in the tick meets it where it now is. The launch replaces the flight it had, as Unreal’s LaunchCharacter replaces a character’s velocity.

Parameter Type
writer PredictedWriter
ball Entity
velocity Vector3Like
launchFlightOptions LaunchFlightOptions

void

launchFlight(step, ball, new Vector3(0, 6, 8));