@dill-pixel/plugin-snap-physics
Version:
Snap Physics
32 lines • 1.09 kB
TypeScript
import { Application, IApplication, Plugin } from 'dill-pixel';
import { System } from './System';
export interface ISnapPhysicsPlugin extends Plugin {
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);
}
type SnapPhysicsPluginOptions = {
useSpatialHashGrid: boolean;
gridCellSize: number;
fps: number;
debug: boolean;
};
export declare class SnapPhysicsPlugin extends Plugin<Application, 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(app: IApplication, options?: Partial<SnapPhysicsPluginOptions>): Promise<void>;
private _addMathExtras;
}
export {};
//# sourceMappingURL=SnapPhysicsPlugin.d.ts.map