@downpourdigital/physics
Version:
Animation physics!
19 lines (18 loc) • 596 B
TypeScript
import Stepable from './abstracts/Stepable';
import type { EulerSpringProps } from './EulerSpring';
import type { RK4SpringProps } from './RK4Spring';
declare type PassthroughProps = Partial<EulerSpringProps | RK4SpringProps>;
export default class Passthrough implements Stepable {
private position;
private target;
private initial;
isResting: boolean;
constructor({ value, autoStep, }?: PassthroughProps);
step(): void;
set(value: number): void;
get(): number;
reset(): void;
resetTo(value: number): void;
stop(): void;
}
export {};