自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(25)
  • 资源 (2)
  • 收藏
  • 关注

原创 2023投递

7.31——联想测试开发——金风科技——大疆——百度——虹科——地平线——安路科技——卓胜微——复旦微——兆易创新。

2023-07-31 19:13:05 1421 1

原创 ERROR 2003 (HY000): Can‘t connect to MySQL server on ‘localhost:3306‘ (10061)的解决方法

启动这个再进行其他操作。

2023-07-11 15:05:59 81

原创 unity hold on 打不开脚本

alt+F4。

2023-06-05 11:38:36 109

原创 力扣20 有效的括号 报错()[] {}

qian.top()之前需要对qian进行判空。

2023-03-24 20:32:49 192

原创 unity c# Thomas Algorithm

d[N] = (d[N] - a[N - 1] * d[N - 1]) / (b[N] - a[N - 1] * c[N - 1]);

2022-09-27 21:04:03 988 2

原创 unity compute shader 报错

ArgumentException: ComputeBuffer.SetData() : Data size (136 bytes) is not integer multiple of Compute Buffer stride (48 bytes).VecMatPair[] input = new VecMatPair[17]; for (int i = 0; i < input.Length; i++) { VecMatPair a =...

2022-05-14 22:10:31 706

原创 unityCompute shader: Property at kernel index is not set

unity - Compute shader: Property at kernel index is not set - Game Development Stack Exchange1.数据关联、传入传出的流程不规范。2.unity版本问题。3.流程规范,但是有错误。shader.SetBuffer(kernel,"dateBuffer", buffer); buffer.SetData(input); shader.Dispatch(kernel,1,1...

2022-05-14 17:26:50 1569

原创 unity compute shader 报错 Kernel ‘Multiply‘ not found

compute shader里的方法主体的相关数据名字和前面声明的变量对不上。RWStructuredBuffer<VecMatPair> dataBuffer;//此处的dataBuffer,如果写成dateBuffer就会报这个错误。[numthreads(15,1,1)]void Multiply (uint3 id:SV_DispatchThreadID){ dataBuffer[id.x].pos=(float)id.x*0.5;//此处的dataBuffer,..

2022-05-14 17:20:07 1043

原创 KeyNotFoundException: The given key was not present in the dictionary.(给定关键字不在字典中)

KeyNotFoundException: The given key was not present in the dictionary.System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) (at <c8d0d7b9135640958bff528a1e374758>:0)存放的东西在子节点的变量中,根节点确实没办法直接很快找到并删除,除非遍历,但是遍历很耗时,太菜了哈哈哈哈,换其他方法去加速了。

2022-04-27 21:46:20 6458

原创 unity 线段到三角形的最近点

Geometric tools for computer graphics3D Game Engine Design Second Editionreal-time collision detection三本书查看相关数学知识,两本比较繁,用了第三本的简单粗暴法,也不知道有没有什么问题,先往下走了。效果还行。 public Vector3 segmentCloestPointTriangle(Vector3 P, Vector3 Q, Vector3 A, Vector3 B, Vec..

2022-04-05 21:27:41 263

原创 unity list统计某个元素出现次数有问题

var result = coupclins1.GroupBy(item => item, (key, ids) => new { id = key, Cnt = ids.Count() });foreach (var item in result) { print($"id:{item.id} Cnt: {item.Cnt}");...

2022-03-11 15:09:42 3624

原创 unity 突然很卡

原因:加了很多.Debug.Log("");

2022-02-23 20:06:53 4267 1

原创 unity game界面按下play会不断闪烁,按下暂停键(pause)或者中止/下一步(step),game界面的画面会接连变化

没找到答案,改了两个下午的程序,改完还是这样,后来发现是FixedUpdate、Update与OnDrawGizmos的问题,OnDrawGizmos是每帧都会绘制,用FixedUpdate理所当然就那啥了,分析的时候,就突然想到是不是这俩导致的,FixedUpdate改为Update,果然。。...

2022-02-16 23:38:20 2110

原创 unity 层次包围盒 AABB树

Unity3D AABB树-脑血管介入手术VR碰撞检测算法_老王的博客-CSDN博客这是参考的文章和源码,感谢感谢。效果图。

2022-02-13 20:22:32 2001 1

原创 Unity中OnDrawGizmos()和OnDrawGizmosSelected()

当点击了unity的Gizmos小框框:OnDrawGizmos不用选中游戏对象,就可以在Scene和Game中一直显示。OnDrawGizmosSelected需要选中游戏对象,才能显示。

2021-12-31 09:49:40 2615

原创 unity获取子物体球的实际半径

using System.Collections;using System.Collections.Generic;using UnityEngine;public class GetSphereSize : MonoBehaviour{ public GameObject sp; // Start is called before the first frame update void Start() { Vector3 leng...

2021-12-19 10:13:11 2268 1

原创 Unity3d实例化后位置不对的问题

代码中已经有了一个实例化,第二个实例化想要引用第一个实例化的变量,却怎么也没办法赋值,就固定在父物体的位置不变化,网上看到有关UGNI的教程,也不太会,就把第二个实例化转成一系列物体,就可以正常赋值了。...

2021-12-06 14:22:54 2773

原创 unity复现中的错误

Can't add script behaviour VertexZoom.The script needs toderive from MonoBehavirour!看Unity的文件名和类名是不是一样原因:文件名多了一个空格。

2021-11-25 10:53:04 3326

原创 有助于理解-基于网格的碰撞检测-的三篇文章

大规模网格形碰撞检测_游戏-CSDN博客基于网格的碰撞检测_weixin_30344795的博客-CSDN博客

2021-11-20 13:57:43 2295

原创 4.7.2多态案例——计算机类

#include<iostream>using namespace std;#include<string>//分别利用普通写法、多态技术实现计算器//普通写法class Calculator{public: int Getresult(string oper) { if(oper=="+") { return m_Num1+m_Num2; } else if(o...

2021-09-09 21:35:50 82

原创 4.6.6继承同名静态成员处理方式

#include<iostream>using namespace std;class Base{public: static int m_A; static void func() { cout << "Base -static void func()" << endl; } static void func(int a) { cout << "Base -static...

2021-09-08 22:50:23 68

原创 4.6.3继承中的对象模型

#include<iostream>using namespace std;//继承中的对象模型class Base{public: int m_A;protected: int m_B;private: int m_C;};class son : public Base{public: int m_D;};void test01(){ //16 //父类中所有属性都会被子类继承下去 //父类中私有成员属性...

2021-09-07 23:38:44 61

原创 4.6.2继承方式

#include<iostream>using namespace std;//公共继承class Base1{public: int m_A;protected: int m_B;private: int m_C;};class son1 : public Base1{public://以下是son1的公共部分 void func() { m_A=10;//父类中的公共权限成员,到子类中依然是公共权限。 ...

2021-09-07 23:07:06 53

原创 vc6,通过结构体创建变量,non-aggregates cannot be initialized with initializer list的报错

#include<iostream>using namespace std;#include<string>//1.创建学生数据类型:学生(姓名,年龄,分数)struct student{ //成员列表 //姓名 string name; //年龄 int age; //分数 int score;};int main(){//2.通过学生模型创建具体学生//2.1.struct student s1...

2021-08-25 22:44:30 329

原创 vc6,sizeof(__int64)无法显示出8

#include<iostream>using namespace std;int main(){ //整形4类型1.短整型2.整形3.长整型4.长长整型 //sizeof求各个数据类型所占据的内存大小,而不用特别记忆。 //sizeof(数据类型/变量) //sizeof(short)或者sizeof(num1) short num1=10; cout<<"short占用的内存空间="<<sizeof(...

2021-08-20 23:18:43 133

Cut-the-Rope-Replica-master

Cut-the-Rope-Replica-master

2022-03-27

unity绳索系统源码Obi Rope 3.1.1_

unity绳索系统源码Obi Rope 3.1.1_

2022-03-27

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除