摘要:
直接上代码//: Playground - noun: a place where people can playimport UIKitvar number = 123var str = "this \(number)"//输出字符串let 😙 = "123"let testInt : Int = 1let testDouble = 1.1let testFloat = 1.111I... 阅读全文
摘要:
A* Pathfinding Project 翻译第二波 Navmeshes 导航网格 第一部分教程中包括普通的导航图,以这为蓝本,第二部分使用自动生成的导航图重做,如果你对此感兴趣 请优先阅读第一部分的教程,其中包涵一些有用的信息。 Getting Started with the A* Pathfinding Project - Part 2 - Navmeshes. The firs... 阅读全文
摘要:
本系列教程为A*寻路插件的官方教程翻译,本来我想找现成的文档貌似没有无奈之下只好自行翻译顺便造福群众。 Get Started with the A* Pathfinding Project A*插件大概的功能就是A到B点之间最佳的路径,读完本篇教程你能学到在项目中配置A*并且写一个简单的能规避障碍物的AI。 Pathfinding is all about finding the bes... 阅读全文
摘要:
首先这是一篇FSM翻译,关于Finite State Machine 的架构赏析,如果项目对ai需求不是非常强,可以在此基础上扩展,keyle也是在学习中欢迎交流,后面两篇计划是在写一篇BehaviorTree(行为树),最后一篇实现基于Lua的AI的热更新QQ群交流:137728654Finite State MachineContents 1Description2Co... 阅读全文
摘要:
基本概念a*实现算法很多,下文仅以启发式算法为例公式 F = G + H ,h为当前点至目标点消耗(距离),g为起始点至当前点的消耗(距离) , F为代价主要做两件事一.生成导航图二.计算代价,寻找最少代价的路径1.生成导航图 a.根据地图的宽度高度决定不同网格尺寸与网格密度 b.检测地图中需... 阅读全文
摘要:
本章是作者关于StrageIOC的结束语,但是我觉得StrageIOC是用来扩展的,你可以活学活用,甚至只用其中一部分,值得你去在项目中实践。 That wraps up the Big, Strange How-To. You now know a lot about how Strange works and what it can do to make your world a bette... 阅读全文
摘要:
MVCSContext: the big picture 本篇基本上就是介绍Strange框架的基本方法使用与部署Unity3d项目,另外所有框架的思路都是一致的,让项目变得易于维护。现在让我们一起开始吧。 This section is basically a recipe for building a Strange app with MVCSContext. In the last se... 阅读全文
摘要:
Strange: the IoC framework for Unity Extensions You may have heard that Strange is a Dependency Injection framework. I'm a little uncomfortable with that description. Sure, Strange offers DI and it... 阅读全文
摘要:
StrangeIoC: The Good, The Bad and the Strange (Part 1 of 2)https://www.youtube.com/watch?v=4ebReOBH15QStrangeIoC: The Good, The Bad and the Strange (P... 阅读全文
摘要:
Strange: the IoC framework for UnityBindingStrangeIoc的核心是一个非常简单的绑定包,它可以创建间接绑定,减轻代码对程序其他部分的依赖。The core of Strange is a very simple package for binding.... 阅读全文
摘要:
Strange: the IoC framework for Unity为了向开发者致敬及目录的完整性我还是保留了这一段话,任何一个项目的成功都离不开一群为之奋斗的人It is hard to adequately credit the creators of the open source Act... 阅读全文
摘要:
Strange: the IoC framework for UnityStrange attractors create predictable patterns, often in chaotic systems. 在混乱的系统中创造出一个可以预测的模式 .IntroductionStrange... 阅读全文
摘要:
总纲从高层次上介绍了Strangeioc,本框架采用依赖注入的框架适用于大部分C#与Unity3d项目。This is a high-level introduction to StrangeIoC, a binding framework supporting Dependency Injecti... 阅读全文