Pathfinding manager will now return path steps in pixel units by default
This commit is contained in:
parent
f96eac4737
commit
f78392ceab
7 changed files with 50 additions and 45 deletions
|
@ -84,9 +84,9 @@ export class WorkadventurePlayerCommands extends IframeApiContribution<Workadven
|
|||
});
|
||||
}
|
||||
|
||||
public async walkTo(x: number, y: number, speed: number): Promise<{ x: number; y: number }> {
|
||||
public async moveTo(x: number, y: number, speed: number): Promise<{ x: number; y: number }> {
|
||||
return await queryWorkadventure({
|
||||
type: "walkPlayerTo",
|
||||
type: "movePlayerTo",
|
||||
data: { x, y, speed },
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue