Switch to Vec3fp and fp variables for character

This commit is contained in:
Vladislav Khorev committed 2026-11-13 18:56:44 +06:00
1 parent 8df016c0a4
commit 889c6d465b
23 files changed
+384 -406

No files matched your search

+2 -2
View File
@@ -664,9 +664,9 @@ namespace FRG
if (!loc) return;
if (loc->player) {
server().submit(SetCharacterPositionCommand{
destName, loc->player->entityId(), destPos});
destName, loc->player->entityId(), Vec3fp::fromEigen(destPos)});
server().submit(SetCharacterFacingAngleCommand{
destName, loc->player->entityId(), destRotY, true});
destName, loc->player->entityId(), static_cast<fp>(destRotY), true});
loc->stopCharacter(*loc->player);
}
loc->localState().cameraAzimuth = destRotY;