kingBook

导航

2023年7月7日 #

基本初等函数的求导公式

摘要: ![image](https://img2023.cnblogs.com/blog/714380/202307/714380-20230707055144363-1485694860.jpg) 阅读全文

posted @ 2023-07-07 05:32 kingBook 阅读(10) 评论(0) 推荐(0) 编辑

2023年6月25日 #

快速求解矩阵特征值

摘要: 当求一个矩阵的特征值时一般将特征方程化为以下形成形式. $\left | \lambda E-A \right | =(\lambda-\lambda_{1})(\lambda-\lambda_{2})(\lambda-\lambda_{3})=0$ 例:$A=\begin{bmatrix} 1& 阅读全文

posted @ 2023-06-25 23:15 kingBook 阅读(92) 评论(0) 推荐(0) 编辑

2023年6月24日 #

制作瀑布

摘要: 使用的瀑布模型: ![image](https://img2023.cnblogs.com/blog/714380/202306/714380-20230624031504788-1568843861.png) 瀑布模型使用的材质 Demo_WaterFall.mat: ![image](https 阅读全文

posted @ 2023-06-24 03:50 kingBook 阅读(7) 评论(0) 推荐(0) 编辑

2023年6月3日 #

求炮弹在某一时刻的运动方向和速度大小

摘要: **例:** 以初速度$v_{0}$、发射角$a$发射炮弹,其弹道的轨迹方程为 $ \begin{cases} & x=v_{0}t\cos a ,\\ & y=v_{0}t\sin a-\frac{1}{2}gt^{2} , \end{cases} $ 求: 1. 炮弹在 $t$ 时刻的运动方向; 阅读全文

posted @ 2023-06-03 15:33 kingBook 阅读(39) 评论(0) 推荐(0) 编辑

2023年5月17日 #

Unity 2022 (Windows 10) 每次打开项目都会弹出"Unity is running as administrator"

摘要: 1.Win+R 输入 control,打开控制面板. 2.找到 用户账户 -> 更改用户账户控制设置. 3.将滑块调用中间 仅当应用尝试更改我的计算机时通知我(默认). 4.重启电脑 阅读全文

posted @ 2023-05-17 20:43 kingBook 阅读(1070) 评论(0) 推荐(0) 编辑

2023年3月26日 #

三次多项式的因式分解——双十字相乘法

摘要: https://zhuanlan.zhihu.com/p/455686319 阅读全文

posted @ 2023-03-26 21:59 kingBook 阅读(141) 评论(0) 推荐(0) 编辑

2023年3月1日 #

Unity URP 平面反射

摘要: https://www.bilibili.com/video/BV1TA4y1D7s4/?spm_id_from=333.999.0.0&vd_source=5672eeb8a9721da01495e313f0dff6c2 https://zhuanlan.zhihu.com/p/493766119 阅读全文

posted @ 2023-03-01 23:48 kingBook 阅读(50) 评论(0) 推荐(0) 编辑

2023年2月27日 #

Unity URP Shader 基础光照

摘要: 光照:https://zhuanlan.zhihu.com/p/232193169 光照:https://www.jianshu.com/p/5641bfe91458 高光:https://zhuanlan.zhihu.com/p/245906244 阴影:https://blog.csdn.net 阅读全文

posted @ 2023-02-27 17:04 kingBook 阅读(124) 评论(0) 推荐(0) 编辑

2023年2月17日 #

排列与组合、二项式定理

摘要: 排列的定义:从n个不同元素中,任取m (m≤n,m与n均为自然数) 个不同的元素按照一定的顺序排成一列,叫做从n个不同元素中取出m个元素的一个排列;从n个不同元素中取出m (m≤n) 个元素的所有排列的个数,叫做从n个不同元素中取出m个元素的排列数,用符号$A(n,m)$或$A^m_n$表示。 计算 阅读全文

posted @ 2023-02-17 20:15 kingBook 阅读(179) 评论(0) 推荐(0) 编辑

2023年2月15日 #

unity 单摆模拟

摘要: using System; using UnityEngine; using System.Collections; using UnityEngine.Serialization; public class Pendulum : MonoBehaviour { public Transform a 阅读全文

posted @ 2023-02-15 15:33 kingBook 阅读(32) 评论(0) 推荐(0) 编辑

2023年2月14日 #

unity 四元数旋转各元素值的计算方法

摘要: // 旋转轴 Vector3 axis = Vector3.up; // 旋转弧度 float rad = 50f * Mathf.Deg2Rad; Quaternion quaternion = new Quaternion(); quaternion.x = Mathf.Sin(rad / 2f 阅读全文

posted @ 2023-02-14 22:50 kingBook 阅读(14) 评论(0) 推荐(0) 编辑

2022年12月28日 #

URP 空间转换

摘要: $\begin{Bmatrix}模型空间(model\ space) \对象空间(object\ space) \局部空间(local\ space) \end{Bmatrix} \underbrace{\Rightarrow }{模型变换} \begin{Bmatrix}世界空间(world\ s 阅读全文

posted @ 2022-12-28 22:26 kingBook 阅读(192) 评论(0) 推荐(0) 编辑

2022年9月21日 #

Win10 OneNote 一直卡的登录界面

摘要: Internet选项 -> 高级,勾选使用 SSL 3.0 阅读全文

posted @ 2022-09-21 10:19 kingBook 阅读(64) 评论(0) 推荐(0) 编辑

2022年9月16日 #

mul()函数

摘要: https://blog.csdn.net/Ling_SevoL_Y/article/details/120206679 | 函数 | 说明 | | | | | mul(M,N) | 计算两个矩阵相乘,如果 M 为 AxB 阶矩阵,N 为 BxC 阶矩阵,则返回 AxC 阶矩阵。下面两个函数为其重载 阅读全文

posted @ 2022-09-16 14:39 kingBook 阅读(166) 评论(0) 推荐(0) 编辑

2022年9月5日 #

Unity 导入人形骨骼模型及动画

摘要: 例:当导入名称为 Women 的模型,这一般分为两个部分: 包含有蒙皮网格(SkinnedMeshRenderer)和骨骼的 Women.fbx 主要导入设置: Rig -> AnimationType : Humanoid Animation -> Import Animation: false 阅读全文

posted @ 2022-09-05 21:06 kingBook 阅读(129) 评论(0) 推荐(0) 编辑

2022年8月26日 #

UnityEditor Undo

摘要: 最重要的几项操作如下所述: 修改单个属性: Undo.RecordObject (myGameObject.transform, "Zero Transform Position"); myGameObject.transform.position = Vector3.zero; 添加组件: Und 阅读全文

posted @ 2022-08-26 14:00 kingBook 阅读(27) 评论(0) 推荐(0) 编辑

UnityEditor 查找和获取内置资源

摘要: Object[] UnityAssets = AssetDatabase.LoadAllAssetsAtPath("Resources/unity_builtin_extra"); foreach (var asset in UnityAssets) { Debug.Log(asset); } De 阅读全文

posted @ 2022-08-26 12:22 kingBook 阅读(52) 评论(0) 推荐(0) 编辑

2022年8月23日 #

UnityEditor 获取FileID/LocalIdentfierInFile

摘要: private static int GetLocalIdentfierInFile(UnityEngine.Object obj) { PropertyInfo info = typeof(SerializedObject).GetProperty("inspectorMode", Binding 阅读全文

posted @ 2022-08-23 17:46 kingBook 阅读(162) 评论(0) 推荐(0) 编辑

2022年8月17日 #

网格数据

摘要: 设有以下一维网格数据 // sbyte:8 位带符号整数,取值范围[-128,127] sbyte[] gridData=new sbyte[]{ 0,1,2, 3,4,5, 6,7,8 }; col: 列数(竖向有几列,一般用于表示 x) | | | | | | | | | | | | row:行 阅读全文

posted @ 2022-08-17 16:58 kingBook 阅读(67) 评论(0) 推荐(0) 编辑

2022年7月17日 #

Unity Editor 使文本输入框失去焦点

摘要: GUIUtility.keyboardControl = 0; 阅读全文

posted @ 2022-07-17 17:44 kingBook 阅读(132) 评论(0) 推荐(0) 编辑

Unity Editor 复制内容到剪切板

摘要: string str="acd12335"; TextEditor textEditor = new TextEditor(); textEditor.text = str; textEditor.SelectAll(); textEditor.Copy(); 阅读全文

posted @ 2022-07-17 16:50 kingBook 阅读(73) 评论(0) 推荐(0) 编辑

2022年6月28日 #

Unity 在编辑器中输入字符串时,转义字符的输入

摘要: 当使用如下代码,然后在 Unity 编辑器中输入 "Time Out\n Fail",当在代码中读取时并不能读取到换行符"\n",而是读取到加转义符后的"\\n" using UnityEngine; public class TestText : MonoBehaviour { [Serializ 阅读全文

posted @ 2022-06-28 17:09 kingBook 阅读(322) 评论(0) 推荐(0) 编辑

2022年6月23日 #

Unity VideoPlayer使用url方式,Android平台下无法播放http链接的视频(黑屏、无反应、无报错、无log输出)

摘要: 以下内容基于 Unity 2019.4.28f1c1,未来可能有变化 (以下 Other Settings 供参考,未必影响) Edit → Project Settings → Player → Android平台 → Other Settings :设置如下 Rendering Auto Gra 阅读全文

posted @ 2022-06-23 17:25 kingBook 阅读(371) 评论(0) 推荐(0) 编辑

2022年6月19日 #

UnityEditor 编辑器脚本执行菜单

摘要: 例:执行 Edit/Duplicate 菜单 [MenuItem("Tools/Duplicate")] private static void ExecuteDuplicate() { bool isExecute = EditorApplication.ExecuteMenuItem("Edit 阅读全文

posted @ 2022-06-19 18:09 kingBook 阅读(117) 评论(0) 推荐(0) 编辑

2022年6月10日 #

Unity 检测对象是否在相机的视锥体范围内

摘要: TestInCamera.cs using System.Collections; using System.Collections.Generic; using UnityEngine; using Stopwatch = System.Diagnostics.Stopwatch; [Requir 阅读全文

posted @ 2022-06-10 16:32 kingBook 阅读(82) 评论(0) 推荐(0) 编辑

2022年5月30日 #

Win 将资源管理器固定在任务栏后,右键时卡死

摘要: 删除注册表项:HKEY_CLASSES_ROOT\Folder\shellex\ContextMenuHandlers\Library Location FixContextMenu.reg Windows Registry Editor Version 5.00 [-HKEY_CLASSES_RO 阅读全文

posted @ 2022-05-30 20:03 kingBook 阅读(40) 评论(0) 推荐(0) 编辑

2022年5月24日 #

unity URP 灯光烘焙记录

摘要: Mesh 需要焙焙的模型网格,勾选 Contribute GI、BatchingStatic Light: Directional Light: 一般用于主灯光,模式为 Realtime Spot Light: 模式为 Mixed, 开启阴影 Point Light:模式为 Mixed, 开启阴影( 阅读全文

posted @ 2022-05-24 16:20 kingBook 阅读(505) 评论(0) 推荐(0) 编辑

2022年5月21日 #

3.3 三角函数的积化和差与和差化积

摘要: ![image](https://img2022.cnblogs.com/blog/714380/202205/714380-20220521123433722-1000145496.png) 阅读全文

posted @ 2022-05-21 12:35 kingBook 阅读(156) 评论(0) 推荐(0) 编辑

2022年5月19日 #

git 查找大文件、删除大文件

摘要: 1. git add -A 2. git commit -m "xxx" 3. git gc 4. 查找大文件,"tail -20"中的20表示条数 git rev-list --objects --all | grep "$(git verify-pack -v .git/objects/pack 阅读全文

posted @ 2022-05-19 09:40 kingBook 阅读(427) 评论(0) 推荐(0) 编辑

2022年5月16日 #

第三章 三角恒等变换

摘要: 两角和与差的正弦、余弦、正切公式: \(\cos (\alpha \pm \beta ) = \cos a\cos \beta \mp\sin \alpha \sin \beta\) \(\sin (\alpha \pm \beta ) = \sin \alpha \cos \beta \pm \c 阅读全文

posted @ 2022-05-16 21:00 kingBook 阅读(28) 评论(0) 推荐(0) 编辑

1.3 三角函数的诱导公式

摘要: https://baike.baidu.com/item/%E4%B8%89%E8%A7%92%E5%87%BD%E6%95%B0%E5%85%AC%E5%BC%8F/4374733 公式二 $\sin (\pi+\alpha ) = -\sin a$ $\cos (\pi+a) = -\cos a 阅读全文

posted @ 2022-05-16 20:44 kingBook 阅读(663) 评论(0) 推荐(0) 编辑

1.2.2 同角三角函数的基本关系

摘要: \(\sin^{2}\alpha + \cos^{2}\alpha = 1\) \(\frac{\sin a}{\cos a} = \tan a\) 阅读全文

posted @ 2022-05-16 20:27 kingBook 阅读(289) 评论(0) 推荐(0) 编辑

2022年5月13日 #

git format-patch/diff

摘要: Git 提供了两种补丁方案: 一是用git diff生成的UNIX标准补丁.diff文件,二是git format-patch生成的Git专用.patch 文件。 .diff文件: 只记录文件更改的内容,不带有commit记录信息,多个commit可以合并成一个diff文件。 .patch文件: 带 阅读全文

posted @ 2022-05-13 11:38 kingBook 阅读(333) 评论(0) 推荐(0) 编辑

2022年5月6日 #

Unity 当使用 Instantiate() 创建实例时,在参数里定义父级与实例化后再设置父级的区别

摘要: 设有: prefab:预制件, 默认的位置在(10,10,10)。 parent:在场景中的游戏对象,位置在(20,20,20)。 例1. 在参数里定义父级,会将实例直接旋转到父级,此时实例在父级内的局部坐标为(10,10,10),实例的世界坐标为(30,30,30) var inst = Inst 阅读全文

posted @ 2022-05-06 17:34 kingBook 阅读(151) 评论(0) 推荐(0) 编辑

2022年4月22日 #

Cinemachine Collider

摘要: https://blog.csdn.net/wangjiangrong/article/details/108999736 Cinemachine Collider是Cinemachine虚拟相机的扩展。它对虚拟相机的最终位置进行后期处理,以试图保持虚拟相机的LookAt目标的视线。它通过远离阻挡视 阅读全文

posted @ 2022-04-22 12:11 kingBook 阅读(65) 评论(0) 推荐(0) 编辑

2022年4月20日 #

Unity Editor Hierarchy下拉菜单扩展

摘要: TestHierarchyPopupMenuEditor.cs using UnityEditor; using UnityEngine; public class TestHierarchyPopupMenuEditor : ScriptableObject { [MenuItem("GameOb 阅读全文

posted @ 2022-04-20 17:45 kingBook 阅读(292) 评论(0) 推荐(0) 编辑

2022年4月9日 #

Unity Rigidbody.AddForce 的 ForceMode

摘要: 举例中均设刚体质量为 m=2.0f,力向量为 f=(10.0f,0.0f,0.0f)。 功能注解:ForceMode为枚举类型,用来控制力的作用方式,有4个枚举成员,在以下举例中均设刚体质量为m=2.0f,力向量为f=(10.0f,0.0f,0.0f)。 1)ForceMode.Force:默认方式 阅读全文

posted @ 2022-04-09 14:46 kingBook 阅读(155) 评论(0) 推荐(0) 编辑

2022年3月25日 #

Unity 帧序列图转粒子系统特效

摘要: 如果使用 Flash 导出系列图表,需要保存表中无空白 阅读全文

posted @ 2022-03-25 09:29 kingBook 阅读(104) 评论(0) 推荐(0) 编辑

2022年3月24日 #

C# 值类型

摘要: https://docs.microsoft.com/zh-cn/dotnet/csharp/language-reference/builtin-types/value-types 值类型的变量包含类型的实例。 它不同于引用类型的变量,后者包含对类型实例的引用。 默认情况下,在分配中,通过将实参传 阅读全文

posted @ 2022-03-24 10:42 kingBook 阅读(107) 评论(0) 推荐(0) 编辑

C# 定义宏

摘要: #define ENABLE_TEST // 必须在 using 的上方定义 using System.Collections; using UnityEngine; public class TestDefine : MonoBehaviour { void Start () { #if ENAB 阅读全文

posted @ 2022-03-24 09:23 kingBook 阅读(1963) 评论(0) 推荐(0) 编辑