pixi-fusion
Version:
This module offers a set of common components needed for playing games.
7 lines (6 loc) • 374 B
TypeScript
import { Body } from "matter-js";
import { GameObjectPhysicalObjectConfig } from "./GameObjectPhysicalObjectConfig";
import { Nullable } from "../types";
export declare const usePhysicalObjectFromConfig: <PhysicalObjectType extends Nullable<Body> = Body>({ position, ...physicalObjectConfig }: GameObjectPhysicalObjectConfig) => {
physicalObject: PhysicalObjectType;
};