Skip to content

Commit

Permalink
fix: missing kpPos no args overload
Browse files Browse the repository at this point in the history
  • Loading branch information
KeSuave committed Dec 4, 2024
1 parent b24bc13 commit ae719ee
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/lib/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit ae719ee

Please sign in to comment.