|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/unity-tips-position-rotation-scale/
课程评论:没有评论
**课程名称:Unity 技巧:位置、旋转、缩放** **课程概述:** 本课程旨在教授您如何在 Unity 中实现游戏对象的移动、旋转和缩放。 **课程内容:** * **位置 (Position):** * 学习向量数学基础,包括向量加减、标量乘法、点乘、叉乘和归一化。 * 掌握多种移动游戏对象的方法: * 使用 `transform` 方法 * 使用 `Mathf` 和 `Vector` 方法 * 通过施加速度到 `Rigidbody` * 使用动画 * 将所学向量操作应用于实际游戏开发场景。 * **旋转 (Rotation):** * 学习使用欧拉角 (Euler Angles) 和四元数 (Quaternions) 来旋转游戏对象。 * 理解两种方法的优缺点。 * 通过实践任务巩固旋转知识。 * **缩放 (Scale):** * 学习如何改变对象大小以实现特定目标,例如精灵翻转或修改父对象而不影响子对象。 * 探索如何缩放“时间”这个第四维度。 **其他重要内容:** * 学习如何获取键盘、鼠标和触摸屏等不同来源的输入。 * 了解射线投射 (raycasting) 和 `Rigidbody` 等常用 Unity 功能。 * 提供可供自由实验的代码仓库。 **目标:** 通过本课程,您将能够熟练掌握在 Unity 中操纵游戏对象的位置、旋转和缩放,并将其应用于各种游戏开发任务。
The main goal of this course, as its name suggests, is to teach you how to perform movement, rotation and scaling of Unity gameobjects. In the Position section, we will start with the vector math basics. Each lecture represents a task that you could try to do yourself after I give you some theory and code examples. We'll cover most if not all the ways you can move an object or calculate its position:By using transform methodsBy using Matf and Vector methodsBy applying velocity to the rigidbodyBy using animationWe'll cover vector operations such as addition, subtraction, scalar multiplication, dot and cross products and normalization, and try them out in real game development tasks you might face.Next, we'll take a look how to use Euler Angles and Quaternions in order to Rotate your gameobjects. I'll show you pros and cons of each approach and, of course, provide you with some challenging tasks to solidify your new knowledge.Finally, you will work with the Scale. In this rather small section you will learn how to change the object size to achieve your goals such as a sprite flip or modifying the parent object without affecting the children. We'll also take a look on how to scale the 4-th dimension - the time itself. In this course, you will also learn how to get input from different sources such as keyboard, mouse and touchscreen, take a look at raycasting, rigidbody, and a lot of other cool stuff that you can use during the game development. And of course you can freely experiment with the code I provide with my repository.