FixedRig
Since 0.6
Signature
export class FixedRig implements CameraRig {
readonly kind = "fixed" as const
readonly config: FixedConfig
pose: CameraPose
constructor(config: Partial<FixedConfig> = {})
get yaw(): number
get pitch(): number
followTarget(ctx: Ctx): EntityHandle | null
update(ctx: Ctx, _dt: number, _input: RigInput): CameraPose
}
Import: import { FixedRig } from "@argus/gameplay"
Members
| Member | Signature | Description |
|---|---|---|
kind | readonly kind = "fixed" as const | |
config | readonly config: FixedConfig | |
pose | pose: CameraPose | |
constructor | constructor(config: Partial<FixedConfig> = {}) | |
yaw | get yaw(): number | |
pitch | get pitch(): number | |
followTarget | followTarget(ctx: Ctx): EntityHandle | null | |
update | update(ctx: Ctx, _dt: number, _input: RigInput): CameraPose |