private void SyncThirdPersonAppearance(PlayerEntity player) { player.thirdPersonAppearance.Posture = ThirdPersonAppearanceUtils.GetPosture(player.stateInterface.State); player.thirdPersonAppearance.Action = ThirdPersonAppearanceUtils.GetAction(player.stateInterface.State); player.thirdPersonAppearance.PeekDegree = player.characterBoneInterface.CharacterBone.PeekDegree; player.thirdPersonAppearance.NeedUpdateController = true; player.thirdPersonAppearance.CharacterHeight = player.characterControllerInterface.CharacterController.GetCharacterControllerHeight; player.thirdPersonAppearance.CharacterCenter = player.characterControllerInterface.CharacterController.GetCharacterControllerCenter; player.thirdPersonAppearance.CharacterRadius = player.characterControllerInterface.CharacterController.GetCharacterControllerRadius; }
private void SyncThirdPersonAppearance(PlayerEntity player) { player.thirdPersonAppearance.Posture = ThirdPersonAppearanceUtils.GetPosture(player.stateInterface.State.GetCurrentPostureState()); player.thirdPersonAppearance.NextPosture = ThirdPersonAppearanceUtils.GetPosture(player.stateInterface.State.GetNextPostureState()); player.thirdPersonAppearance.Action = ThirdPersonAppearanceUtils.GetAction(player.stateInterface.State.GetActionState()); player.thirdPersonAppearance.Movement = ThirdPersonAppearanceUtils.GetMovement(player.stateInterface.State.GetCurrentMovementState()); player.thirdPersonAppearance.PeekDegree = player.characterBoneInterface.CharacterBone.PeekDegree; player.thirdPersonAppearance.NeedUpdateController = true; player.thirdPersonAppearance.CharacterHeight = player.characterControllerInterface.CharacterController.GetCharacterControllerHeight; player.thirdPersonAppearance.CharacterCenter = player.characterControllerInterface.CharacterController.GetCharacterControllerCenter; player.thirdPersonAppearance.CharacterRadius = player.characterControllerInterface.CharacterController.GetCharacterControllerRadius; player.thirdPersonAppearance.CharacterStandHeight = player.characterInfo.CharacterInfoProviderContext.GetStandCapsule().Height; }