Fixing dorm script bugs

This commit is contained in:
Vladislav Khorev committed 2026-07-10 15:08:38 +03:00
1 parent 07f45ad1e1
commit 7dadfd8ed8
6 files changed
+45 -32

No files matched your search

+11
View File
@@ -150,6 +150,17 @@ void Character::setTarget(const Eigen::Vector3f& target, std::function<void()> o
state.walkTarget = normalizedTarget;
}
void Character::stopAndRotateToTarget(int npcId)
{
state.onArrivedCallback = nullptr;
state.onArrivedCallbackName = "";
state.walkTarget = state.position;
state.requestedWalkTarget = state.position;
state.faceTargetIndex = npcId;
state.pathWaypoints.clear();
state.currentWaypointIndex = 0;
}
void Character::setPathPlanner(PathPlanner planner) {
pathPlanner = std::move(planner);
}