sparkle-engine

Interface ICollisionEvent

interface ICollisionEvent {
    onBodyEnter: ((body) => void);
    onBodyExit: ((body) => void);
    onClick: (() => void);
    onEnterTree: (() => void);
    onExitTree: (() => void);
    onReady: (() => void);
}

Hierarchy (view full)

Properties

onBodyEnter: ((body) => void)

Type declaration

onBodyExit: ((body) => void)

Type declaration

    • (body): void
    • Parameters

      Returns void

onClick: (() => void)

Type declaration

    • (): void
    • Returns void

onEnterTree: (() => void)

Type declaration

    • (): void
    • Returns void

onExitTree: (() => void)

Type declaration

    • (): void
    • Returns void

onReady: (() => void)

Type declaration

    • (): void
    • Returns void