OrbitShotSpec
Since 0.6
What {@link orbitShot} builds a shot from.
Signature
export interface OrbitShotSpec {
/** The point circled, and looked at unless `target` says otherwise. */
center: Vec3
/** Horizontal distance from the centre, metres. */
radius: number
/** Eye height above the centre, metres. */
height: number
/** Start and end angle, degrees about +Y; 0 is on the centre's +Z side. */
fromDeg: number
toDeg: number
/** Seconds. */
duration: number
fov?: number
/** Look at this instead of `center`: a point or an entity id. */
target?: Vec3 | string
/** Keys along the arc; more is rounder. Default one per 5° (the chords sag under 0.1% of the radius), at least 2. */
steps?: number
name?: string
blend?: number
}
Import: import type { OrbitShotSpec } from "@argus/gameplay"
Members
| Member | Signature | Description |
|---|---|---|
center | center: Vec3 | The point circled, and looked at unless target says otherwise. |
radius | radius: number | Horizontal distance from the centre, metres. |
height | height: number | Eye height above the centre, metres. |
fromDeg | fromDeg: number | Start and end angle, degrees about +Y; 0 is on the centre's +Z side. |
toDeg | toDeg: number | |
duration | duration: number | Seconds. |
fov | fov?: number | |
target | target?: Vec3 | string | Look at this instead of center: a point or an entity id. |
steps | steps?: number | Keys along the arc; more is rounder. Default one per 5° (the chords sag under 0.1% of the radius), at least 2. |
name | name?: string | |
blend | blend?: number |