11月20日 作业3 生命药剂,角色蓝图修改

2023-11-10

具体太麻烦了,我直接贴代码了

SPowerUp_Actor

.h

// Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "CoreMinimal.h" #include "SGameplayInterface.h" #include "Components/SphereComponent.h" #include "GameFramework/Actor.h" #include "SPowerUp_Actor.generated.h" UCLASS() class ACTIONROUGELIKE_API ASPowerUp_Actor : public AActor , public ISGameplayInterface { GENERATED_BODY() public: // Sets default values for this actor's properties ASPowerUp_Actor(); protected: // Called when the game starts or when spawned UPROPERTY(EditAnywhere,Category="Powerup") float RespawnTime; UFUNCTION() void ShowPowerup(); void HideAndCooldownPowerup(); void SetPowerupState(bool bNewIsActive); UPROPERTY(VisibleAnywhere,Category="Component") USphereComponent* SphereComp; public: // Called every frame void Interact_Implementation(APawn* InstigationPawn) override; };

.cpp

// Fill out your copyright notice in the Description page of Project Settings. //药水Base #include "SPowerUp_Actor.h" // Sets default values ASPowerUp_Actor::ASPowerUp_Actor() { // Set this actor to call Tick() every frame. You can turn this off to improve performance if you don't need it. SphereComp = CreateDefaultSubobject<USphereComponent>("SphereComp"); // SphereComp->SetCollisionProfileName("Powerup"); RootComponent = SphereComp; RespawnTime = 10.0f; } void ASPowerUp_Actor::ShowPowerup() { SetPowerupState(true); } void ASPowerUp_Actor::HideAndCooldownPowerup() { SetPowerupState(false); FTimerHandle TimerHandle_RespawnTimer; GetWorldTimerManager().SetTimer(TimerHandle_RespawnTimer,this,&ASPowerUp_Actor::ShowPowerup,RespawnTime); } void ASPowerUp_Actor::SetPowerupState(bool bNewIsActive) { SetActorEnableCollision(bNewIsActive); RootComponent->SetVisibility(bNewIsActive,true); } void ASPowerUp_Actor::Interact_Implementation(APawn* InstigationPawn) { ISGameplayInterface::Interact_Implementation(InstigationPawn); }

SPowerUp_HealthPotion

.h

// Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "CoreMinimal.h" #include "SPowerUp_Actor.h" #include "SPowerUp_HealthPotion.generated.h" class UStaticMeshComponent; /** * */ UCLASS() class ACTIONROUGELIKE_API ASPowerUp_HealthPotion : public ASPowerUp_Actor { GENERATED_BODY() public: ASPowerUp_HealthPotion(); protected: UPROPERTY(VisibleAnywhere,Category = "Components") UStaticMeshComponent* StaticMeshComp; public: void Interact_Implementation(APawn* InstigationPawn) override; };

.cpp

// Fill out your copyright notice in the Description page of Project Settings. #include "SPowerUp_HealthPotion.h" #include "SAttributeComponent.h" ASPowerUp_HealthPotion::ASPowerUp_HealthPotion() { StaticMeshComp = CreateDefaultSubobject<UStaticMeshComponent>("StaticMeshComp"); StaticMeshComp->SetCollisionEnabled(ECollisionEnabled::NoCollision); StaticMeshComp->SetupAttachment(RootComponent); } void ASPowerUp_HealthPotion::Interact_Implementation(APawn* InstigationPawn) { if(!ensure(InstigationPawn)) { return; } USAttributeComponent* AttributeComp = Cast<USAttributeComponent>(InstigationPawn->GetComponentByClass(USAttributeComponent::StaticClass())); //如果不是最大的血量 if(ensure(AttributeComp && !AttributeComp->IsFullHealth())) { //只有有ApplyHealthChange这个函数的才可以回复血量 if(AttributeComp -> ApplyHealthChange(AttributeComp->GetMaxHealth() )) { HideAndCooldownPowerup(); } } }

SCharacter

.h

// Fill out your copyright notice in the Description page of Project Settings. //这是角色 #pragma once #include "CoreMinimal.h" #include "SAttributeComponent.h" #include "SInteractionComponent.h" #include "Camera/CameraComponent.h" #include "GameFramework/Character.h" #include "GameFramework/SpringArmComponent.h" #include "SCharacter.generated.h" class UCameraComponent; class USpringArmComponent; class USInteractionComponent; UCLASS() class ACTIONROUGELIKE_API ASCharacter : public ACharacter { GENERATED_BODY() public: // Sets default values for this character's properties ASCharacter(); protected: //在这里设置需要的指针 //设置了一个弹簧臂 UPROPERTY(VisibleAnywhere) USpringArmComponent* SpringArmComp;//定义一个结构体指针 //设置了一个相机 UPROPERTY(VisibleAnywhere) UCameraComponent* CameraComp; //设置了一个接口 UPROPERTY(VisibleAnywhere) USInteractionComponent* InteractionComp; //设置了一个可以随时编辑的叫做ProjectileClass类,类型是Actor UPROPERTY(EditAnywhere, Category="Attack")//迭代器分类为Attack TSubclassOf<AActor> ProjectileClass; UPROPERTY(EditAnywhere, Category = "Attack") TSubclassOf<AActor> BlackHoleProjectileClass; UPROPERTY(EditAnywhere, Category = "Attack") TSubclassOf<AActor> DashProjectileClass; //添加一个动画蒙太奇 UPROPERTY(EditAnywhere, Category="Attack") UAnimMontage* AttackAnim; //定时器 FTimerHandle TimeHandle_PrimaryAttack; FTimerHandle TimerHandle_BlackholeAttack; FTimerHandle TimerHandle_Dash; //角色属性 UPROPERTY(VisibleAnywhere,BlueprintReadOnly,Category="Components") USAttributeComponent * AttributeComp; UPROPERTY(VisibleAnywhere, Category = "Effects") FName TimeToHitParamName; UPROPERTY(VisibleAnywhere, Category = "Effects") FName HandSocketName; /* Particle System played during attack animation */ UPROPERTY(EditAnywhere, Category = "Attack") UParticleSystem* CastingEffect; //动画间隔时间 float AttackAnimDelay; //在这里设置需要的函数 // Called when the game starts or when spawned virtual void BeginPlay() override; //移动 void MoveForward(float Value); void MoveRight(float Value); //射线 void PrimaryInteraction(); //子弹 void PrimaryAttack(); void PrimaryAttack_TimeElapsed(); void BlackHoleAtt(); void BlackholeAtt_TimeElapsed(); void Dash(); void Dash_TimeElapsed(); //生成子弹 void SpawnProjectile(TSubclassOf<AActor> ClassToSpawn); //开始攻击特效 void StartAttackEffects(); //血量变化 UFUNCTION() void OnHealthChanged(AActor* InstigatorActor,USAttributeComponent* OwningComp,float NewHealth,float Delta); public: // Called every frame virtual void Tick(float DeltaTime) override; // Called to bind functionality to input virtual void SetupPlayerInputComponent(class UInputComponent* PlayerInputComponent) override; //游戏前绑定 virtual void PostInitializeComponents() override; };

.cpp

// Fill out your copyright notice in the Description page of Project Settings. //这是角色 #include "SCharacter.h" #include "GameFramework/CharacterMovementComponent.h" #include "Kismet/GameplayStatics.h" // Sets default values ASCharacter::ASCharacter() { // Set this character to call Tick() every frame. You can turn this off to improve performance if you don't need it. PrimaryActorTick.bCanEverTick = true; //这里设置初始组件 //SpringArmComp为RootComponent的子物体 SpringArmComp = CreateDefaultSubobject<USpringArmComponent>("SpringArmComp"); //命名为SpringArmComp SpringArmComp->bUsePawnControlRotation = true; //If this component is placed on a pawn, should it use the view/control rotation of the pawn where possible? When disabled, the component will revert to using the stored RelativeRotation of the component. SpringArmComp->SetupAttachment(RootComponent); //标记为子物体 //CameraComp为SpringArmComp的子物体 CameraComp = CreateDefaultSubobject<UCameraComponent>("CameraComp"); CameraComp->SetupAttachment(SpringArmComp); //将创建的InteractionComp绑定在角色上 InteractionComp = CreateDefaultSubobject<USInteractionComponent>("InteractionComp"); //将创建的AttributeComp绑定在角色上 AttributeComp = CreateDefaultSubobject<USAttributeComponent>("AttributeComp"); //设置了chara在旋转的时候会跟着鼠标视角进行旋转 GetCharacterMovement()->bOrientRotationToMovement = true; //设置了角色不能Z轴移动 bUseControllerRotationYaw = false; AttackAnimDelay = 0.2f; TimeToHitParamName = "TimeToHit"; HandSocketName = "Muzzle_01"; } void ASCharacter::PostInitializeComponents() { //初始化的时候绑定事件 Super::PostInitializeComponents(); AttributeComp->OnHealthChanged.AddDynamic(this,&ASCharacter::OnHealthChanged); } // Called to bind functionality to input 输入绑定 void ASCharacter::SetupPlayerInputComponent(UInputComponent* PlayerInputComponent) { Super::SetupPlayerInputComponent(PlayerInputComponent); //设置前后左右移动 PlayerInputComponent->BindAxis("MoveForward",this,&ASCharacter::MoveForward); PlayerInputComponent->BindAxis("MoveRight",this,&ASCharacter::MoveRight); //设置鼠标旋转视角 PlayerInputComponent->BindAxis("Turn",this,&APawn::AddControllerYawInput); PlayerInputComponent->BindAxis("Lookup",this,&APawn::AddControllerPitchInput); //设置了一个攻击的Action PlayerInputComponent->BindAction("PrimaryAttack",IE_Pressed,this,&ASCharacter::PrimaryAttack); PlayerInputComponent->BindAction("PrimaryInteraction",IE_Pressed,this,&ASCharacter::PrimaryInteraction); PlayerInputComponent->BindAction("SecondaryAttack", IE_Pressed, this, &ASCharacter::BlackHoleAtt); PlayerInputComponent->BindAction("Dash", IE_Pressed, this, &ASCharacter::Dash); //设置了跳跃 PlayerInputComponent->BindAction("Jump",IE_Pressed,this,&ASCharacter::Jump); } //移动 void ASCharacter::MoveForward(float Value) { //设置前后移动方式 FRotator ControlRot = GetControlRotation(); ControlRot.Pitch = 0.0f; ControlRot.Roll = 0.0f; AddMovementInput(ControlRot.Vector(),Value); } void ASCharacter::MoveRight(float Value) { //设置左右移动方式 FRotator ControlRot = GetControlRotation(); ControlRot.Pitch = 0.0f; ControlRot.Roll = 0.0f; FVector RightVector = FRotationMatrix(ControlRot).GetScaledAxis(EAxis::Y); AddMovementInput(RightVector,Value); } //攻击动画 void ASCharacter::PrimaryAttack() { //动画蒙太奇 StartAttackEffects(); //设置定时器 GetWorldTimerManager().SetTimer(TimeHandle_PrimaryAttack, this,&ASCharacter::PrimaryAttack_TimeElapsed,0.2f); //GetWorldTimerManager().ClearTimer(TimeHandle_PrimaryAttack);//清除定时器 } //子弹类型 void ASCharacter::PrimaryAttack_TimeElapsed() { SpawnProjectile(ProjectileClass); } void ASCharacter::BlackHoleAtt() { StartAttackEffects(); GetWorldTimerManager().SetTimer(TimeHandle_PrimaryAttack,this,&ASCharacter::BlackholeAtt_TimeElapsed,AttackAnimDelay); } void ASCharacter::BlackholeAtt_TimeElapsed() { SpawnProjectile(BlackHoleProjectileClass); } void ASCharacter::Dash() { StartAttackEffects(); GetWorldTimerManager().SetTimer(TimeHandle_PrimaryAttack,this,&ASCharacter::Dash_TimeElapsed,AttackAnimDelay); } void ASCharacter::Dash_TimeElapsed() { SpawnProjectile(DashProjectileClass); } //统一动作 void ASCharacter::StartAttackEffects() { PlayAnimMontage(AttackAnim); UGameplayStatics::SpawnEmitterAttached(CastingEffect, GetMesh(), HandSocketName, FVector::ZeroVector, FRotator::ZeroRotator, EAttachLocation::SnapToTarget); } //按E发出射线 void ASCharacter::PrimaryInteraction() { if(InteractionComp) { InteractionComp->PrimaryInteract(); } } //新的射击 void ASCharacter::SpawnProjectile(TSubclassOf<AActor> ClassToSpawn) { if(ensure(ProjectileClass)) { //触发函数的时候从手部位置生成一个魔法球的模型 FVector HandLocation = GetMesh()->GetSocketLocation(HandSocketName); FActorSpawnParameters SpawnParameters; SpawnParameters.SpawnCollisionHandlingOverride = ESpawnActorCollisionHandlingMethod::AlwaysSpawn; SpawnParameters.Instigator=this; //球形碰撞体 FCollisionShape Shape; Shape.SetSphere(20.0f); // FCollisionQueryParams Params; Params.AddIgnoredActor(this); //三种类型 FCollisionObjectQueryParams QueryParams; QueryParams.AddObjectTypesToQuery(ECC_WorldDynamic); QueryParams.AddObjectTypesToQuery(ECC_WorldStatic); QueryParams.AddObjectTypesToQuery(ECC_Pawn); // FVector TraceStart = CameraComp->GetComponentLocation(); FVector TraceEnd = CameraComp->GetComponentLocation() + (GetControlRotation().Vector() * 5000); FHitResult Hit; if(GetWorld()->SweepSingleByObjectType(Hit,TraceStart,TraceEnd,FQuat::Identity,QueryParams,Shape,Params)) { TraceEnd = Hit.ImpactPoint; } //让手部总是朝着十字准星的方向射击,准确的说是跟随射线的终点,这一段的逻辑是终点的Location位置减去手部位置在世界中的Location,用MakeFromX计算出旋转的量 FRotator ProRotator = FRotationMatrix::MakeFromX(TraceEnd - HandLocation).Rotator(); // FTransform Transform = FTransform(ProRotator, HandLocation); //发射 GetWorld()->SpawnActor<AActor>(ClassToSpawn,Transform,SpawnParameters); } } void ASCharacter::Tick(float DeltaTime) { Super::Tick(DeltaTime); } // Called when the game starts or when spawned void ASCharacter::BeginPlay() { Super::BeginPlay(); } void ASCharacter::OnHealthChanged(AActor* InstigatorActor, USAttributeComponent* OwningComp, float NewHealth, float Delta) { if (Delta < 0.0f) { GetMesh()->SetScalarParameterValueOnMaterials(TimeToHitParamName, GetWorld()->TimeSeconds); } //当血量少于0的时候清除控制器的输入 if(NewHealth < 0.0f && Delta<0.0f) { APlayerController * PC = Cast<APlayerController>(GetController()); DisableInput(PC); } } // Called every frame

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

11月20日 作业3 生命药剂,角色蓝图修改 的相关文章

  • 调整图像大小并将画布旋转 90 度

    这里有很多关于在 js 上使用画布旋转图像的主题 我阅读了其中的大部分内容 但无法找到解决我的问题的方法 我正在接收任何分辨率的图像 来自上传组件 我将其大小调整为 1024x768 如下所示 var canvas document cre
  • 在两个活动之间传输数据[重复]

    这个问题在这里已经有答案了 我正在尝试在两个不同的活动之间发送和接收数据 我在这个网站上看到了一些其他问题 但没有任何问题涉及保留头等舱的状态 例如 如果我想从 A 类发送一个整数 X 到 B 类 然后对整数 X 进行一些操作 然后将其发送
  • 如何将 pfx 文件转换为 jks,然后通过使用 wsdl 生成的类来使用它来签署传出的肥皂请求

    我正在寻找一个代码示例 该示例演示如何使用 PFX 证书通过 SSL 访问安全 Web 服务 我有证书及其密码 我首先使用下面提到的命令创建一个 KeyStore 实例 keytool importkeystore destkeystore
  • 加密 JBoss 配置中的敏感信息

    JBoss 中的标准数据源配置要求数据库用户的用户名和密码位于 xxx ds xml 文件中 如果我将数据源定义为 c3p0 mbean 我会遇到同样的问题 是否有标准方法来加密用户和密码 保存密钥的好地方是什么 这当然也与 tomcat
  • 为什么我们在打字稿中使用 HTMLInputElement ?

    我们为什么使用 document getElementById ipv as HTMLInputElement value 代替 document getElementById ipv value 功能getElementById返回具有类
  • 有没有办法在 onclick 触发时禁用 iPad/iPhone 上的闪烁/闪烁?

    所以我有一个有 onclick 事件的区域 在常规浏览器上单击时 它不会显示任何视觉变化 但在 iPad iPhone 上单击时 它会闪烁 闪烁 有什么办法可以阻止它在 iPad iPhone 上执行此操作吗 这是一个与我正在做的类似的示例
  • 在 Mac 上正确运行基于 SWT 的跨平台 jar

    我一直致力于一个基于 SWT 的项目 该项目旨在部署为 Java Web Start 从而可以在多个平台上使用 到目前为止 我已经成功解决了由于 SWT 依赖的系统特定库而出现的导出问题 请参阅相关thread https stackove
  • 仅将 char[] 的一部分复制到 String 中

    我有一个数组 char ch 我的问题如下 如何将 ch 2 到 ch 7 的值合并到字符串中 我想在不循环 char 数组的情况下实现这一点 有什么建议么 感谢您花时间回答我的问题 Use new String value offset
  • 在移动设备上滚动

    这个问题更多的是一个建议研究 我确实希望它对其他人有帮助 并且它不会关闭 因为我不太确定在哪里寻求有关此事的建议 在过去的 6 个月里 我一直在进行移动开发 我有机会处理各种设备上的各种情况和错误 最麻烦的是滚动问题 当涉及到在网站的多个区
  • 声明的包“”与预期的包不匹配

    我可以编译并运行我的代码 但 VSCode 中始终显示错误 早些时候有一个弹出窗口 我不记得是什么了 我点击了 全局应用 从那以后一直是这样 Output is there but so is the error The declared
  • 如何使用 crypto-js 解密 AES ECB

    我正在尝试将加密数据从 flash 客户端 发送到服务器端的 javascript 在 asp 中作为 jscript 运行 有几个 javascript Aes 库 但它们实际上没有文档记录 我正在尝试使用 crypto js 但无法让代
  • 编译器抱怨“缺少返回语句”,即使不可能达到缺少返回语句的条件

    在下面的方法中 编译器抱怨缺少退货声明即使该方法只有一条路径 并且它包含一个return陈述 抑制错误需要另一个return陈述 public int foo if true return 5 鉴于Java编译器可以识别无限循环 https
  • Firebase 添加新节点

    如何将这些节点放入用户节点中 并创建另一个节点来存储帖子 我的数据库参考 databaseReference child user getUid setValue userInformations 您需要使用以下代码 databaseRef
  • 如何用另一个响应替换窗口的 URL 哈希?

    我正在尝试使用替换方法更改哈希 URL document location hash 但它不起作用 function var anchor document location hash this returns me a string va
  • JGit 检查分支是否已签出

    我正在使用 JGit 开发一个项目 我设法删除了一个分支 但我还想检查该分支是否已签出 我发现了一个变量CheckoutCommand但它是私有的 private boolean isCheckoutIndex return startCo
  • 将 List 转换为 JSON

    Hi guys 有人可以帮助我 如何将我的 HQL 查询结果转换为带有对象列表的 JSON 并通过休息服务获取它 这是我的服务方法 它返回查询结果列表 Override public List
  • 按日期对 RecyclerView 进行排序

    我正在尝试按日期对 RecyclerView 进行排序 但我尝试了太多的事情 我不知道现在该尝试什么 问题就出在这条线上适配器 notifyDataSetChanged 因为如果我不放 不会显示错误 但也不会更新 recyclerview
  • 如何确定所有角度2分量都已渲染?

    当所有 Angular2 组件完成渲染时 是否会触发一个角度事件 For jQuery 我们可以用 function 然而 对于 Angular2 当domready事件被触发 html 只包含角度组件标签 每个组件完成渲染后 domrea
  • Vue.js[vuex] 如何从突变中调度?

    我有一个要应用于 json 对象的过滤器列表 我的突变看起来像这样 const mutations setStars state payload state stars payload this dispatch filter setRev
  • 使用 xpath 和 vtd-xml 以字符串形式获取元素的子节点和文本

    这是我的 XML 的一部分

随机推荐

  • Python中如何查看Pandas DataFrame对象列的最大值、最小值、平均值、标准差、中位数等

    如何查看Pandas DataFrame对象列的最大值 最小值 平均值 标准差 中位数等 我们举个例子说明一下 先创建一个dataframe对象df 内容如下 1 使用sum函数获得函数列的和 用法 df sum 2 使用max获取最大值
  • Qt中的主窗口QMainWindow

    GUI应用程序都有一个主窗口 虽然前面讲到的QWidget组件也可以定义生成主窗口 但是Qt还定义了一个专门用于实现主窗口的类QMainWindow 为什么 跟QDialog一样的道理 主窗口具有许多主窗口特有的元素组件 为了程序的复用性
  • 编程常用快捷键和doc命令

    常用快捷键 win r 打开运行 cmd命令行窗口 win e打开我的电脑 ctrl shift esc打开任务管理器 doc命令 打开doc win r 输入cmd shift右键任意文件夹选择在此处运行powershell窗口 在资源管
  • 【网站数据统计解决方案】快速了解pv、uv、spm、utm_source、埋点等知识

    前言 在访问阿里网站或者一些博客网站的时候 发现地址后面跟了 spm 1010 2135 3001 4477这种参数 以及在访问国外网站的时候会跟 utm source google utm medium cpc utm campaign
  • 番茄ToDo帮助文档

    说明 2020年7月开始使用 番茄ToDo App 目标是通过手机App这样的工具提升效率 养成习惯 提升自我管理能力 番茄ToDo帮助文档 什么是番茄ToDo 番茄工作法是简单易行的时间管理方法 是由弗朗西斯科 西里洛于1992年创立的一
  • 如何去除discuz的powered by discuz!代码

    这串代码 很多人都在问这个问题 今天在这里分享一下 方法 步骤 首选在FTP里面找到源文件夹template default common header common htm 右击编辑 2 打开后找到里面的这串代码 3 将后面的 Power
  • 创建和分析二维桁架和梁结构研究(Matlab代码实现)

    欢迎来到本博客 博主优势 博客内容尽量做到思维缜密 逻辑清晰 为了方便读者 座右铭 行百里者 半于九十 本文目录如下 目录 1 概述 2 运行结果 3 参考文献 4 Matlab代码及讲解 1 概述 创建和分析二维桁架和梁结构的研究可以涉及
  • python 实现二叉树

    本文不涉及二叉树概念的详细讲解 而着重利用 python 实现二叉树 其中穿插代码讲解 其它数据结构 链表 栈和队列 目录 节点 构造树 层遍历 添加节点 先序遍历 中序遍历 后序遍历 测试 在链表中 一个节点只能有一个后继节点和前驱节点
  • find grep 寻找文件字符

    如果你只想在 r 类型的文件中寻找特定字符串 可以使用以下命令 grep ri universal include r i 忽略大小写 r递归所有文件 如果你只想查找文件名包含 universal 且扩展名为 r 的文件 而不是文件内容 则
  • torch.cuda.is_available()为false的解决办法

    一 问题 在进行torch进行开发的过程中 我们习惯性的会使用pip install torch这样的方式来安装torch的包 其实这样的是安装CPU的torch 在导入包 执行下面代码的过程中 会出现结果为false import tor
  • win10通过conda安装pytorch gpu

    1 安装anaconda 到官网下载最新版的anaconda 下载对应的windows版本 地址 anaconda官网 下载后直接安装 安装完成后配置环境变量 具体可以百度anaconda安装说明 安装完成后 打开cmd 输入conda v
  • Nginx HTTPS实践

    Nginx HTTPS实践 文章目录 Nginx HTTPS实践 1 HTTPS基本概述 1 1 为何需要HTTPS 1 2 什么是HTTPS 1 3 TLS如何实现加密 2 HTTPS实现原理 2 1 加密模型 对称加密 2 2 加密模型
  • 用matlab编程实现对图像的均值滤波,中值滤波和拉普拉斯算子锐化

    1 均值滤波 均值滤波 用包含在滤波掩模邻域内的像素的平均灰度值去代替每个像素点的值 用途 用于模糊处理和减少噪声 盒滤波器 加权平均滤波器 均值滤波 clc close all clear all I rgb2gray imread fi
  • java编程练习

    package HomeWork05 import java util Scanner public class HomeWork05 public static void main String args Scanner sc new S
  • PAMI19 - 强大的级联RCNN架构《Cascade R-CNN: High Quality Object Detection and Instance Segmentation》

    文章目录 原文 初识 相知 Challenge to High Quality Detection Cascade RCNN 与相似工作的异同 扩展到实例分割 回顾 参考 原文 https arxiv org pdf 1906 09756
  • springboot框架中使用websocket传输内容过长的问题解决

    很多业务中使用websocket进行前后台的长连接 一般情况下用作及时性消息推送等 而一旦传输内容过长 例如传输一些图片音频的base64编码之类的 很容易出现过长问题 甚至不提示问题直接截断乃至丢失数据 解决方法如下 很多人网上查阅方法会
  • 【算法 -- LeetCode】(026)删除有序数组中的重复项

    1 题目 给你一个 升序排列 的数组 nums 请你 原地 删除重复出现的元素 使每个元素 只出现一次 返回删除后数组的新长度 元素的 相对顺序 应该保持 一致 然后返回 nums 中唯一元素的个数 考虑 nums 的唯一元素的数量为 k
  • CORDIC算法详解及FPGA实现

    CORDIC算法详解 1 平面坐标系旋转 CORDIC算法的思想是通过迭代的方法 使得累计旋转过的角度的和无限接近目标角度 它是一种数值计算逼近的方法 运算只有移位和加减 通过圆坐标系可以了解CORDIC算法的基本思想 如图1所示 初始向量
  • 线边仓

    SAP线边库管理 是又叫WIP仓 或叫线上仓 举例来说 一卷线材 总长303米 工单需用100米 于是发料发出303米 也就是一卷 其中100米上生产线 另外203米进入这个WIP仓 下次领料直接从WIP仓发出去 管控非常到位 具体操作就要
  • 11月20日 作业3 生命药剂,角色蓝图修改

    具体太麻烦了 我直接贴代码了 SPowerUp Actor h Fill out your copyright notice in the Description page of Project Settings pragma once i