UNPKG

@dill-pixel/plugin-snap-physics

Version:

Snap Physics

31 lines 1.1 kB
import { IApplication, IPlugin, Plugin } from 'dill-pixel'; import { System } from './System'; export interface SnapPhysicsPluginOptions { useSpatialHashGrid: boolean; gridCellSize: number; fps: number; debug: boolean; } export interface ISnapPhysicsPlugin extends IPlugin<SnapPhysicsPluginOptions> { get system(): typeof System; get gridCellSize(): number; set gridCellSize(value: number); get useSpatialHashGrid(): boolean; set useSpatialHashGrid(value: boolean); get fps(): number; set fps(value: number); } export declare class SnapPhysicsPlugin extends Plugin<SnapPhysicsPluginOptions> { readonly id = "SnapPhysicsPlugin"; get gridCellSize(): number; set gridCellSize(value: number); get useSpatialHashGrid(): boolean; set useSpatialHashGrid(value: boolean); set fps(value: number); get system(): typeof System; private hello; destroy(): void; initialize(options: Partial<SnapPhysicsPluginOptions>, _app: IApplication): Promise<void>; private _addMathExtras; } //# sourceMappingURL=SnapPhysicsPlugin.d.ts.map