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. *