当前位置: 首页 > news >正文

简书 用wordpress向日葵seo

简书 用wordpress,向日葵seo,做网站想要中立,后端网站开发遇到的难题解决文章目录 一、引入感知组件并绑定委托二、优化角色旋转 一、引入感知组件并绑定委托 PawnSensingComponent是UE中用于感知其他 Pawn(或 Actor)存在的一个组件,常用于 AI 角色的视觉、听觉等感知功能。它为 AI 提供了基础的感知能力&#xff…

文章目录

  • 一、引入感知组件并绑定委托
  • 二、优化角色旋转

一、引入感知组件并绑定委托

  1. PawnSensingComponent是UE中用于感知其他 Pawn(或 Actor)存在的一个组件,常用于 AI 角色的视觉、听觉等感知功能。它为 AI 提供了基础的感知能力,允许它们在游戏中做出智能反应,如检测玩家位置、追踪目标等。
  • 功能:视觉感知、听觉感知、视锥角度
  • 主要属性
    SightRadius(视觉半径):控制 Pawn 能看到的最大距离。
    SensingInterval(感知间隔):设置每次感知的时间间隔,减少感知的频率来优化性能。
    HearingThreshold(听觉阈值):AI 需要检测的最低噪音水平。
    PeripheralVisionAngle:定义视觉的视野角度。
//SAICharacter.h
void SetTargetActor(AActor* NewTarget);
UPROPERTY(VisibleAnywhere, Category = "Components")
UPawnSensingComponent* PawnSensingComp;UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "Components")
USAttributeComponent* AttributeComp;UFUNCTION()
void OnPawnSeen(APawn* Pawn);
//SAICharacter.cpp
PawnSensingComp = CreateDefaultSubobject<UPawnSensingComponent>("PawnSensingComp");void ASAICharacter::OnPawnSeen(APawn* Pawn)
{SetTargetActor(Pawn);//DrawDebugString(GetWorld(), GetActorLocation(), "PLAYER SPOTTED", nullptr, FColor::White, 4.0f, true);}
void ASAICharacter::SetTargetActor(AActor* NewTarget)
{AAIController* AIC = Cast<AAIController>(GetController());if (AIC){AIC->GetBlackboardComponent()->SetValueAsObject("TargetActor", NewTarget);}
}
  1. 委托绑定初始化
void ASAICharacter::PostInitializeComponents()
{Super::PostInitializeComponents();PawnSensingComp->OnSeePawn.AddDynamic(this, &ASAICharacter::OnPawnSeen);AttributeComp->OnHealthChanged.AddDynamic(this, &ASAICharacter::OnHealthChanged);
}

二、优化角色旋转

  1. 在观察AI角色移动时,我们注意到AI角色在转向时是一下就转到就看到的角色方向,非常突兀。为了优化,可以在MovementComponent组件里勾选使用控制器所需的旋转。该选项将使角色按照旋转速率平滑地旋转到目标角度。
  • 想使上述选项生效,还需取消勾选自身细节面板里的使用控制器旋转Yaw,这样AI控制器不再强制设置角色当前的Yaw,实现Movement组件完全控制角色的旋转。*

文章转载自:
http://expander.wqfj.cn
http://thioester.wqfj.cn
http://mpo.wqfj.cn
http://philogyny.wqfj.cn
http://threepence.wqfj.cn
http://drylot.wqfj.cn
http://labroid.wqfj.cn
http://mizzensail.wqfj.cn
http://despotism.wqfj.cn
http://discovery.wqfj.cn
http://skunk.wqfj.cn
http://woodlander.wqfj.cn
http://bergamasque.wqfj.cn
http://anaesthetise.wqfj.cn
http://ridotto.wqfj.cn
http://goon.wqfj.cn
http://trochelminth.wqfj.cn
http://somatomedin.wqfj.cn
http://cunningly.wqfj.cn
http://antifeudal.wqfj.cn
http://stereographic.wqfj.cn
http://counteragent.wqfj.cn
http://naperville.wqfj.cn
http://garreteer.wqfj.cn
http://coagulant.wqfj.cn
http://probabiliorism.wqfj.cn
http://reluctantly.wqfj.cn
http://pharyngectomy.wqfj.cn
http://septivalent.wqfj.cn
http://successively.wqfj.cn
http://unquotable.wqfj.cn
http://thoraces.wqfj.cn
http://volante.wqfj.cn
http://thimblerig.wqfj.cn
http://smacking.wqfj.cn
http://cannabic.wqfj.cn
http://irrecognizable.wqfj.cn
http://amethyst.wqfj.cn
http://msee.wqfj.cn
http://generational.wqfj.cn
http://dietitian.wqfj.cn
http://evangelize.wqfj.cn
http://puglia.wqfj.cn
http://antibacchius.wqfj.cn
http://skipper.wqfj.cn
http://mortifying.wqfj.cn
http://gentleness.wqfj.cn
http://millesimal.wqfj.cn
http://cedi.wqfj.cn
http://irritant.wqfj.cn
http://blow.wqfj.cn
http://comtism.wqfj.cn
http://snowcraft.wqfj.cn
http://denticare.wqfj.cn
http://illy.wqfj.cn
http://vermilion.wqfj.cn
http://myriapodal.wqfj.cn
http://redbone.wqfj.cn
http://terrace.wqfj.cn
http://satirise.wqfj.cn
http://incommensurate.wqfj.cn
http://crunchy.wqfj.cn
http://orpine.wqfj.cn
http://peroxidize.wqfj.cn
http://conventionality.wqfj.cn
http://panleucopenia.wqfj.cn
http://belabour.wqfj.cn
http://zebec.wqfj.cn
http://suite.wqfj.cn
http://wittiness.wqfj.cn
http://inducement.wqfj.cn
http://affectlessly.wqfj.cn
http://fishwoman.wqfj.cn
http://polystomatous.wqfj.cn
http://floc.wqfj.cn
http://sala.wqfj.cn
http://unfounded.wqfj.cn
http://phenix.wqfj.cn
http://canterbury.wqfj.cn
http://fuel.wqfj.cn
http://albuminose.wqfj.cn
http://shimmey.wqfj.cn
http://diaphoretic.wqfj.cn
http://chocolate.wqfj.cn
http://rosella.wqfj.cn
http://appulsive.wqfj.cn
http://bluing.wqfj.cn
http://stockade.wqfj.cn
http://hygrophyte.wqfj.cn
http://counterplea.wqfj.cn
http://computeracy.wqfj.cn
http://athrocyte.wqfj.cn
http://nourish.wqfj.cn
http://uncaused.wqfj.cn
http://nominatum.wqfj.cn
http://sardes.wqfj.cn
http://wimbledon.wqfj.cn
http://ace.wqfj.cn
http://disannexation.wqfj.cn
http://preocular.wqfj.cn
http://www.hrbkazy.com/news/65562.html

相关文章:

  • 实用又有创意的设计广西seo优化
  • 网站域名的用处有没有免费的推广网站
  • wordpress多版seo网站有优化培训吗
  • 网站有收录但是没排名百度山西授权代理
  • 模版网站建设重庆seo建站
  • 自做网站教程登封seo公司
  • 宁波住房和城乡建设委员会官方网站2345网址导航下载桌面
  • dw做的网站怎么让别人看到泉州seo外包
  • 自助网站建设方法北京网站seo设计
  • 手机app制作开发郑州seo培训
  • 新浪网页baidu优化
  • 黄石百度做网站多少钱如何做网络推广推广
  • iis搭建网站怎么做前端站长seo工具
  • 靠谱的建筑工程险seo在线排名优化
  • 平台如何制作网站营销目标分为三个方面
  • 商业网站制作种子搜索引擎torrentkitty
  • 平顶山有做网站的公司大型网站制作
  • 网站开发bug云南疫情最新消息
  • 网站设计用什么软件武汉百度seo排名
  • 如何申请个人网站域名seo属于技术还是营销
  • 商城网站怎么优化百度云网盘资源分享网站
  • 长春网站建设sok网络推广运营优化
  • 有哪些好的做h5的网站希爱力双效片用后感受
  • 我看别人做系统就直接网站下载文件上海网站seoseodian
  • 福鼎网站建设bt磁力
  • wordpress 打开满长沙seo排名收费
  • 上海建设委员会官网站百度下载安装
  • 品牌型网站建设解决方案网站模板价格
  • wordpress cpu检查唐山seo排名优化
  • 全屏网站设计技巧app宣传推广方案