03 2022 档案

摘要:1.生成mesh要使用正确的坐标,它是以自身坐标为基础产生的,所以位置要用自身的坐标,同时如果物体有父类,则需要使用transform.InverseTransformPoint()函数来进行位置转换,避免出现mesh位置错误。 阅读全文
posted @ 2022-03-30 22:26 云鲸啊 阅读(32) 评论(0) 推荐(0)
摘要:#include <GL/glut.h> void Display(void) { glClearColor(0.0, 0.0, 0.0, 0.0); glClear(GL_COLOR_BUFFER_BIT); //六角星 glBegin(GL_POLYGON); glColor3f(1,1,1); 阅读全文
posted @ 2022-03-25 11:08 云鲸啊 阅读(109) 评论(0) 推荐(0)
摘要:导航网格容易在有地形且充满树,草之类的地形上覆盖的非常有限,往往其不能实现我们所需要的导航效果,比如不能在充满草地的路上行走而不能越过草地,本文章参考国外论坛的一种解决方法:1.首先将地形数据复制下来(一般在你的主文件夹能找到)截图选择图中的复制Ctrl+D 复制完成后你会获得一份与之前地形一样的文 阅读全文
posted @ 2022-03-22 18:03 云鲸啊 阅读(405) 评论(0) 推荐(0)
摘要:进入非空目录, 进入forehead.sharevar.com文件夹 git clone --no-checkout https://git.coding.net/BIG-Q/foreheadtech.git foreheadtech mv foreheadtech/.git . #将 forehe 阅读全文
posted @ 2022-03-12 19:22 云鲸啊 阅读(298) 评论(0) 推荐(0)
摘要:带刚体的物体在发生碰撞时候的抖动,可以查看如下原因: 一、是刚体物体可能与其他碰撞体有持续的接触,刚体在接触面上移动,比如说刚体在一个带有boxcolider的地面上移动,这个时候你就会发现有些地方会导致刚体位置的变化,应为boxcolider有一定厚度,你人物的colider可能会由于重力等原因进 阅读全文
posted @ 2022-03-11 11:03 云鲸啊 阅读(2132) 评论(0) 推荐(0)
摘要:using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.AI; public class enemy : MonoBehaviour { // Start is 阅读全文
posted @ 2022-03-10 21:22 云鲸啊 阅读(92) 评论(0) 推荐(0)
摘要:#include <iostream> #include <cstring> using namespace std; int n; int a[1000]; bool b[1000]; int c[10000][10000]; int d[1000]; string s[100000]; void 阅读全文
posted @ 2022-03-05 11:03 云鲸啊 阅读(65) 评论(0) 推荐(0)