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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
writer |
PredictedWriter |
ball |
Entity |
velocity |
Vector3Like |
launchFlightOptions |
LaunchFlightOptions |
Returns
Section titled “Returns”void
Example
Section titled “Example”launchFlight(step, ball, new Vector3(0, 6, 8));