mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2024-11-05 06:50:04 +00:00
Updated NPCWrapper to use Vec3
This commit is contained in:
parent
ca299e0a5b
commit
a29de394ee
@ -117,9 +117,9 @@ static int npc_moveto(lua_State *state) {
|
|||||||
if (npc == NULL)
|
if (npc == NULL)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
std::queue<WarpLocation> queue;
|
std::queue<Vec3> queue;
|
||||||
WarpLocation from = { npc->x, npc->y, npc->z };
|
Vec3 from = { npc->x, npc->y, npc->z };
|
||||||
WarpLocation to = { X, Y, Z };
|
Vec3 to = { X, Y, Z };
|
||||||
|
|
||||||
// add a route to the queue; to be processed in Transport::stepNPCPathing()
|
// add a route to the queue; to be processed in Transport::stepNPCPathing()
|
||||||
Transport::lerp(&queue, from, to, npc->speed);
|
Transport::lerp(&queue, from, to, npc->speed);
|
||||||
|
Loading…
Reference in New Issue
Block a user