FlightOptions
What flight takes.
Properties
Section titled “Properties”| Property | Type | Default value | Description |
|---|---|---|---|
bounceOff? |
readonly FlightSurface[] |
undefined |
Surfaces it bounces off. |
contactsPerTick? |
number |
4 |
Contacts it takes in one tick, from 1 to 64; past them its travel stops for the tick, so a ball wedged between surfaces never tunnels. Raise it for a fast ball in a narrow space, as Unreal’s projectile raises its iterations. |
drag? |
number |
0 |
Quadratic drag per metre, as the track mover’s: each tick the speed loses drag × speed² per second. |
gravityScale? |
number |
1 |
How much of the scene’s gravity pulls it, read at each launch. |
landOn? |
readonly FlightSurface[] |
undefined |
Surfaces it lands on: the flight stops there, and readFlight reports the tick. |
restitution? |
number |
0 |
How much of its speed into a surface a bounce keeps, from 0 to 1. |