Shot
Since 0.6
One shot: its keys, how long it lasts, and how it begins.
Signature
export interface Shot {
/** For logs and for `ShotSample.name`. */
name?: string
/** One key is a still; more are a move. */
keys: ShotKey[]
/** Seconds. Absent, the last key's `at` (a still with no duration lasts one second). */
duration?: number
/** The default easing between this shot's keys. Default `inOut`. */
ease?: ShotEase
/**
* How the shot begins: absent or 0 is a cut; a number is seconds of blend from where the previous shot
* ended, eased in and out, during which this shot's own keys are already playing underneath.
*/
blend?: number
}
Import: import type { Shot } from "@argus/gameplay"
Members
| Member | Signature | Description |
|---|---|---|
name | name?: string | For logs and for ShotSample.name. |
keys | keys: ShotKey[] | One key is a still; more are a move. |
duration | duration?: number | Seconds. Absent, the last key's at (a still with no duration lasts one second). |
ease | ease?: ShotEase | The default easing between this shot's keys. Default inOut. |
blend | blend?: number | How the shot begins: absent or 0 is a cut; a number is seconds of blend from where the previous shot ended, eased in and out, during which this shot's own keys are already playing underneath. |