Switch to Vec3fp and fp variables for character
This commit is contained in:
1 parent
8df016c0a4
commit
889c6d465b
23 files changed
+384
-406
No files matched your search
+2
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user