蓝图节点

C++接口

 /** Generates a random location reachable from given Origin location.*  @return Return Value represents if the call was successful */UFUNCTION(BlueprintPure, Category = "AI|Navigation", meta = (WorldContext = "WorldContextObject", DisplayName = "GetRandomReachablePointInRadius", ScriptName = "GetRandomReachablePointInRadius"))static bool K2_GetRandomReachablePointInRadius(UObject* WorldContextObject, const FVector& Origin, FVector& RandomLocation, float Radius, ANavigationData* NavData = NULL, TSubclassOf<UNavigationQueryFilter> FilterClass = NULL);/** Generates a random location in navigable space within given radius of Origin.* @return Return Value represents if the call was successful */UFUNCTION(BlueprintCallable, Category = "AI|Navigation", meta = (WorldContext = "WorldContextObject", DisplayName = "GetRandomLocationInNavigableRadius", ScriptName = "GetRandomLocationInNavigableRadius"))static bool K2_GetRandomLocationInNavigableRadius(UObject* WorldContextObject, const FVector& Origin, FVector& RandomLocation, float Radius, ANavigationData* NavData = NULL, TSubclassOf<UNavigationQueryFilter> FilterClass = NULL);

二者都是获取范围内一个随机位置,区别是

GetRandomReachablePointInRadius:一定可达。

GetRandomPointInNavigableRadius:不一定可达。例如在孤立平台上,随机到周围地面,实际上从当前位置到随机位置不可达。

参考

What's the difference between GetRandomReachablePointInRadius and GetRandomPointInNavigableRadius? In which case we should use which. - UE4 AnswerHub

GetRandomReachablePointInRadius和GetRandomPointInNavigableRadius相关推荐

  1. 虚幻引擎(9)-AI随机移动

    文章目录 前言 相关介绍 其他介绍 上一篇笔记 下一篇笔记 动态预览图 一.AI可移动区 二.AI黑板 三.AI行为树 [1]. 创建 [2]. 绑定黑板 [3]. 序列合成节点 [4]. 添加自定义 ...

  2. Unreal Engine 4 系列教程 Part 9:AI教程

    原文:Unreal Engine 4 Tutorial: Artificial Intelligence 作者:Tommy Tran 译者:Shuchang Liu 在本篇教程中,你将学习如何使用行为 ...

最新文章

  1. 美多商城之商品(商品数据库表设计)
  2. 自己总结的安装zabbix
  3. 2021年中国GDP突破110万亿元 同比增长8.1%
  4. Binder子系统之调试分析(二)
  5. SQL Server 索引重建手册
  6. css的再深入9(更新中···)
  7. 关于分布式集群的几个问题
  8. flask 蓝图 使用蓝图,增删改查用户
  9. PowerShell 开启无线热点
  10. 抢购活动的粗略设计和实现
  11. awvs10安装过程,实际操作过程
  12. 搭建一个多对多的音视频通信服务
  13. 图形学--(中点画线法+Bresenham画线算法)
  14. ubuntu 16.04可以连接wifi,不能上网问题
  15. navicat导出数据库数据
  16. 【调剂】郑州大学河南先进技术研究院2022年硕士研究生招生拟调剂信息公告
  17. (七)python网络爬虫(理论+实战)——json数据解析
  18. Mac需要关机吗?关机还是休眠你的选择是什么?
  19. 带中继节点的蜂窝小区通信系统matlab仿真,输出吞吐量,功耗以及能效等
  20. 最新仿淘宝B站购物直播小程序+带货完整PHP源码下载

热门文章

  1. redis获取列表的值,lrange
  2. 对PDF进行数字签名,生成可信的文档
  3. 华为java模拟器下载手机版,华为ism模拟器|华为存储ISM模拟器下载 V100R005
  4. 【Git】更简洁的查看历史记录
  5. 科技教育对于中小学生成长的重要性
  6. 巨头云集,只为打造一场前所未有的游戏盛宴
  7. 扫拖地机器人预留_要问扫地机器人拖地拖得干净吗?这两点很重要
  8. css- 纯css画正圆、胶囊按钮、三角形
  9. webservice框架 java_Java CXF WebService框架 开发入门案例
  10. tlb存的什么_TLB缓存是个神马鬼,如何查看TLB miss?