This commit is contained in:
aozhiwei 2022-12-28 14:27:49 +08:00
parent 05ebd8d2bb
commit 853cdf5751

View File

@ -3204,8 +3204,10 @@ void Creature::ForwardMove(float distance)
bool ret = room->map_instance->Raycast(0, start, end, hit_point, hit_result);
if (ret) {
room->map_instance->UnScale(hit_point);
GetMutablePos().FromGlmVec3(hit_point);
}
room->grid_service->MoveCreature(this);
CheckSpecObject();
}