mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 14:24:53 +08:00
17 lines
747 B
TypeScript
17 lines
747 B
TypeScript
|
|
/** Provides access to collision features.
|
|
* @see {@link https://www.construct.net/make-games/manuals/construct-3/scripting/scripting-reference/interfaces/icollisionengine | IAssetManager documentation } */
|
|
declare class ICollisionEngine
|
|
{
|
|
readonly runtime: IRuntime;
|
|
|
|
testOverlap(wi1: IWorldInstance, wi2: IWorldInstance): boolean;
|
|
testOverlapAny(wi: IWorldInstance, iterable: Iterable<IWorldInstance>): IWorldInstance | null;
|
|
testOverlapSolid(wi: IWorldInstance): IWorldInstance | null;
|
|
|
|
setCollisionCellSize(width: number, height: number): void;
|
|
getCollisionCellSize(): Vec2Arr;
|
|
|
|
getCollisionCandidates(objectClasses: IObjectClass<IWorldInstance> | IObjectClass<IWorldInstance>[], rect: DOMRect): IWorldInstance[];
|
|
}
|