From ae719ee122ee8b3ff2eab990d8533a379a6d8c31 Mon Sep 17 00:00:00 2001 From: KeSuave Date: Tue, 3 Dec 2024 21:57:31 -0800 Subject: [PATCH] fix: missing kpPos no args overload --- src/lib/plugin.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/lib/plugin.ts b/src/lib/plugin.ts index ba26e6f..e3399db 100644 --- a/src/lib/plugin.ts +++ b/src/lib/plugin.ts @@ -80,6 +80,14 @@ export interface KaPlanckPluginCtx { * @return {KPPosComp} A position component that works with KaPlanckPlugin methods. */ kpPos(vec: Vec2): KPPosComp; + /** + * Sets the position of a body. + * + * **IMPORTANT**: use this method instead of `pos`, it will add pos component to the entity. + * + * @return {KPPosComp} A position component that works with KaPlanckPlugin methods. + */ + kpPos(): KPPosComp; /** * Sets the rotation of a body. *