UNPKG

excalibur

Version:

Excalibur.js is a simple JavaScript game engine with TypeScript bindings for making 2D games in HTML5 Canvas. Our mission is to make web game development as simple as possible.

13 lines (12 loc) 516 B
import { Vector } from '../Math/vector'; import { TransformComponent } from '../EntityComponentSystem'; import { MotionComponent } from '../EntityComponentSystem/Components/MotionComponent'; export declare class EulerIntegrator { private static _POS; private static _SCALE; private static _ACC; private static _VEL; private static _VEL_ACC; private static _SCALE_FACTOR; static integrate(transform: TransformComponent, motion: MotionComponent, totalAcc: Vector, elapsed: number): void; }