Skip to content
hhh edited this page Feb 5, 2022 · 1 revision

Utils

/**
 * Utility APIs.
 */
namespace Utils {

    /**
     * Create an anchor body at specific position.
     * (Equal to: `new BodyNode({ offsetX, offsetY, active: false })`.)
     */
    const createAnchor: <Events extends BodyNodeEvents = BodyNodeEvents>(offsetX: number, offsetY: number) => BodyNode<Events>;
}
Clone this wiki locally