pixi-fusion
Version:
This module offers a set of common components needed for playing games.
9 lines (8 loc) • 333 B
TypeScript
import { IEngineCallback } from "matter-js";
type UsePhysicsEngineEventHandlerOptions = {
isEnabled?: boolean;
event: "beforeUpdate" | "afterUpdate";
callback: IEngineCallback;
};
export declare const usePhysicsEngineEventHandler: ({ isEnabled, event, callback }: UsePhysicsEngineEventHandlerOptions) => void;
export {};