<!DOCTYPE HTML>
<html lang="zh-hans" >
    <!-- Start book Unity Source Book -->
    <head>
        <!-- head:start -->
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <title>Transform | Unity Source Book</title>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <meta name="description" content="">
        <meta name="generator" content="GitBook 2.6.7">
        <meta name="author" content="李康">
        
        <meta name="HandheldFriendly" content="true"/>
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
        <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">
        
    <link rel="stylesheet" href="../gitbook/style.css">
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-highlight/website.css">
        
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-maxiang/maxiang.css">
        
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-comment/plugin.css">
        
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-search/search.css">
        
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-fontsettings/website.css">
        
    
    

        
    
    
    <link rel="next" href="../UnityClass/translate.html" />
    
    
    <link rel="prev" href="../UnityClass/resources.html" />
    

        <!-- head:end -->
    </head>
    <body>
        <!-- body:start -->
        
    <div class="book"
        data-level="3.5"
        data-chapter-title="Transform"
        data-filepath="UnityClass/transform.md"
        data-basepath=".."
        data-revision="Tue Apr 19 2016 08:44:49 GMT+0800 (中国标准时间)"
        data-innerlanguage="">
    

<div class="book-summary">
    <nav role="navigation">
        <ul class="summary">
            
            
            
            

            

            
    
        <li class="chapter " data-level="0" data-path="index.html">
            
                
                    <a href="../index.html">
                
                        <i class="fa fa-check"></i>
                        
                        介绍
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1" >
            
            <span><b>1.</b> Unity基础</span>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1" >
            
            <span><b>1.1.</b> Unity中的主要面板</span>
            
            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="UnityBasic/prefab.html">
            
                
                    <a href="../UnityBasic/prefab.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.</b>
                        
                        预制体
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="UnityBasic/scene.html">
            
                
                    <a href="../UnityBasic/scene.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.</b>
                        
                        场景搭建
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2" >
            
            <span><b>2.</b> 3D数学基础</span>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1" data-path="3DMath/coordinate.html">
            
                
                    <a href="../3DMath/coordinate.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.</b>
                        
                        坐标系
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="3DMath/vector.html">
            
                
                    <a href="../3DMath/vector.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.</b>
                        
                        向量
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3" data-path="3DMath/vector_compute.html">
            
                
                    <a href="../3DMath/vector_compute.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.</b>
                        
                        向量的运算
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.4" >
            
            <span><b>2.4.</b> 奥特曼打小怪兽</span>
            
            
        </li>
    
        <li class="chapter " data-level="2.5" >
            
            <span><b>2.5.</b> 矩阵</span>
            
            
        </li>
    
        <li class="chapter " data-level="2.6" >
            
            <span><b>2.6.</b> 计算机图形学基础</span>
            
            
        </li>
    
        <li class="chapter " data-level="2.7" >
            
            <span><b>2.7.</b> 四元数与旋转</span>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="3" >
            
            <span><b>3.</b> Unity中的类</span>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="3.1" data-path="UnityClass/component.html">
            
                
                    <a href="../UnityClass/component.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.1.</b>
                        
                        Component
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.2" data-path="UnityClass/monobehaviour.html">
            
                
                    <a href="../UnityClass/monobehaviour.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.2.</b>
                        
                        MonoBehaviour
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.3" data-path="UnityClass/gameobject.html">
            
                
                    <a href="../UnityClass/gameobject.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.3.</b>
                        
                        GameObject
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.4" data-path="UnityClass/resources.html">
            
                
                    <a href="../UnityClass/resources.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.4.</b>
                        
                        Resources
                    </a>
            
            
        </li>
    
        <li class="chapter active" data-level="3.5" data-path="UnityClass/transform.html">
            
                
                    <a href="../UnityClass/transform.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.5.</b>
                        
                        Transform
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="3.5.1" data-path="UnityClass/translate.html">
            
                
                    <a href="../UnityClass/translate.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.5.1.</b>
                        
                        移动
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.5.2" data-path="UnityClass/rotate.html">
            
                
                    <a href="../UnityClass/rotate.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.5.2.</b>
                        
                        旋转
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.5.3" data-path="UnityClass/scale.html">
            
                
                    <a href="../UnityClass/scale.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.5.3.</b>
                        
                        缩放
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.5.4" data-path="UnityClass/parent.html">
            
                
                    <a href="../UnityClass/parent.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.5.4.</b>
                        
                        物体间的层次关系
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="3.6" data-path="UnityClass/time.html">
            
                
                    <a href="../UnityClass/time.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.6.</b>
                        
                        Time
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.7" data-path="UnityClass/input.html">
            
                
                    <a href="../UnityClass/input.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.7.</b>
                        
                        Input
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.8" data-path="UnityClass/object.html">
            
                
                    <a href="../UnityClass/object.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.8.</b>
                        
                        Object
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="4" >
            
            <span><b>4.</b> 协同</span>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="4.1" data-path="Coroutine/coroutine.html">
            
                
                    <a href="../Coroutine/coroutine.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.1.</b>
                        
                        协同 Coroutine
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4.2" data-path="Coroutine/xiang_mu_shi_6218-_ta_fang.html">
            
                
                    <a href="../Coroutine/xiang_mu_shi_6218-_ta_fang.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.2.</b>
                        
                        项目实战-塔防
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="5" >
            
            <span><b>5.</b> 物理系统</span>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="5.1" data-path="Physics/rigidbody.html">
            
                
                    <a href="../Physics/rigidbody.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>5.1.</b>
                        
                        刚体 Rigidbody
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="5.2" data-path="Physics/constant_force.html">
            
                
                    <a href="../Physics/constant_force.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>5.2.</b>
                        
                        静态力场 Constant Force
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="5.3" data-path="Physics/collider.html">
            
                
                    <a href="../Physics/collider.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>5.3.</b>
                        
                        碰撞体 Collider
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="5.4" data-path="Physics/ray.html">
            
                
                    <a href="../Physics/ray.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>5.4.</b>
                        
                        射线 Ray
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="5.5" data-path="Physics/cloth.html">
            
                
                    <a href="../Physics/cloth.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>5.5.</b>
                        
                        布料 Cloth
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="5.6" data-path="Physics/joint.html">
            
                
                    <a href="../Physics/joint.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>5.6.</b>
                        
                        关节 Joint
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="5.7" data-path="Physics/character_controller.html">
            
                
                    <a href="../Physics/character_controller.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>5.7.</b>
                        
                        角色控制器 Character Controller
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="5.8" data-path="Physics/project-3d-hit-plane.html">
            
                
                    <a href="../Physics/project-3d-hit-plane.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>5.8.</b>
                        
                        项目实战-3D打飞机
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="6" data-path="Animate/readme.html">
            
                
                    <a href="../Animate/readme.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>6.</b>
                        
                        动作系统
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="6.1" data-path="Animate/2dgame.html">
            
                
                    <a href="../Animate/2dgame.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>6.1.</b>
                        
                        2D游戏开发
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="6.2" data-path="Animate/animation.html">
            
                
                    <a href="../Animate/animation.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>6.2.</b>
                        
                        帧动画
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="6.3" data-path="Animate/project-angry-bird.html">
            
                
                    <a href="../Animate/project-angry-bird.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>6.3.</b>
                        
                        项目实战-愤怒的小鸟
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="6.4" data-path="Animate/animator_controller.html">
            
                
                    <a href="../Animate/animator_controller.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>6.4.</b>
                        
                        动画状态机
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="6.5" >
            
            <span><b>6.5.</b> 3D动画</span>
            
            
        </li>
    
        <li class="chapter " data-level="6.6" >
            
            <span><b>6.6.</b> 层动画</span>
            
            
        </li>
    
        <li class="chapter " data-level="6.7" >
            
            <span><b>6.7.</b> Blend动画</span>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="7" >
            
            <span><b>7.</b> 组件</span>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="7.1" data-path="Component/camera.html">
            
                
                    <a href="../Component/camera.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>7.1.</b>
                        
                        摄像机 Camera
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="7.2" data-path="Component/project_observe.html">
            
                
                    <a href="../Component/project_observe.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>7.2.</b>
                        
                        项目实战-观察模型
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="7.3" data-path="renderer.html">
            
            <span><b>7.3.</b> 显示组件 Renderer</span>
            
            
        </li>
    
        <li class="chapter " data-level="7.4" >
            
            <span><b>7.4.</b> 粒子系统</span>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="8" >
            
            <span><b>8.</b> UI</span>
            
            
        </li>
    
        <li class="chapter " data-level="9" >
            
            <span><b>9.</b> 数据持久化</span>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="9.1" >
            
            <span><b>9.1.</b> IO流</span>
            
            
        </li>
    
        <li class="chapter " data-level="9.2" >
            
            <span><b>9.2.</b> 序列化与反序列化</span>
            
            
        </li>
    
        <li class="chapter " data-level="9.3" >
            
            <span><b>9.3.</b> XML</span>
            
            
        </li>
    
        <li class="chapter " data-level="9.4" >
            
            <span><b>9.4.</b> JSON</span>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="10" >
            
            <span><b>10.</b> 网络</span>
            
            
        </li>
    
        <li class="chapter " data-level="11" >
            
            <span><b>11.</b> AI</span>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="11.1" data-path="AI/state_controller.html">
            
                
                    <a href="../AI/state_controller.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>11.1.</b>
                        
                        状态机的实现
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="12" >
            
            <span><b>12.</b> 游戏框架</span>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="12.1" >
            
            <span><b>12.1.</b> 模块间通信</span>
            
            
        </li>
    
        <li class="chapter " data-level="12.2" >
            
            <span><b>12.2.</b> 全局数据</span>
            
            
        </li>
    
        <li class="chapter " data-level="12.3" >
            
            <span><b>12.3.</b> 单例模式</span>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="13" >
            
            <span><b>13.</b> 常用插件</span>
            
            
        </li>
    
        <li class="chapter " data-level="14" data-path="项目实战/readme.html">
            
            <span><b>14.</b> 项目实战</span>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="14.1" >
            
            <span><b>14.1.</b> Unity官方案例介绍</span>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="15" data-path="Summary/readme.html">
            
                
                    <a href="../Summary/readme.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>15.</b>
                        
                        总结
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="15.1" data-path="Summary/awesome.html">
            
                
                    <a href="../Summary/awesome.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>15.1.</b>
                        
                        Awesome
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="15.2" >
            
            <span><b>15.2.</b> Unity中的常用快捷键及使用技巧</span>
            
            
        </li>
    
        <li class="chapter " data-level="15.3" >
            
            <span><b>15.3.</b> MonoDevelop中的常用快捷键及使用技巧</span>
            
            
        </li>
    
        <li class="chapter " data-level="15.4" >
            
            <span><b>15.4.</b> VS中的常用快捷键及使用技巧</span>
            
            
        </li>
    
        <li class="chapter " data-level="15.5" data-path="Summary/dui_unity_de_zheng_ti_ren_shi.html">
            
                
                    <a href="../Summary/dui_unity_de_zheng_ti_ren_shi.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>15.5.</b>
                        
                        对Unity的整体认识
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="15.6" >
            
            <span><b>15.6.</b> 实现等待</span>
            
            
        </li>
    
        <li class="chapter " data-level="15.7" >
            
            <span><b>15.7.</b> 控制物体移动的几种方式</span>
            
            
        </li>
    
        <li class="chapter " data-level="15.8" >
            
            <span><b>15.8.</b> 刚体与碰撞体间的联系</span>
            
            
        </li>
    
        <li class="chapter " data-level="15.9" data-path="Summary/vector3forwardtransformforwardyu_wu_ti_zuo_biao_xi.html">
            
                
                    <a href="../Summary/vector3forwardtransformforwardyu_wu_ti_zuo_biao_xi.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>15.9.</b>
                        
                        Vector3.forward、transform.forward与坐标系间的联系
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="15.10" data-path="Summary/gameobjectyu_component_de_guan_xi.html">
            
                
                    <a href="../Summary/gameobjectyu_component_de_guan_xi.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>15.10.</b>
                        
                        GameObject与Component的关系
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="15.11" >
            
            <span><b>15.11.</b> 顺序加载脚本</span>
            
            
        </li>
    
        <li class="chapter " data-level="15.12" >
            
            <span><b>15.12.</b> 2D射线</span>
            
            
        </li>
    
        <li class="chapter " data-level="15.13" >
            
            <span><b>15.13.</b> 动态创建地形</span>
            
            
        </li>
    
        <li class="chapter " data-level="15.14" data-path="Summary/Lerp.html">
            
                
                    <a href="../Summary/Lerp.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>15.14.</b>
                        
                        插值与平滑
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="15.15" data-path="Summary/coordinate.html">
            
                
                    <a href="../Summary/coordinate.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>15.15.</b>
                        
                        坐标系转化
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    


            
            <li class="divider"></li>
            <li>
                <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
                    本书使用 GitBook 发布
                </a>
            </li>
            
        </ul>
    </nav>
</div>

    <div class="book-body">
        <div class="body-inner">
            <div class="book-header" role="navigation">
    <!-- Actions Left -->
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../" >Unity Source Book</a>
    </h1>
</div>

            <div class="page-wrapper" tabindex="-1" role="main">
                <div class="page-inner">
                
                
                    <section class="normal" id="section-">
                    
                        <h1 id="transform">Transform</h1>

                    
                    </section>
                
                
                </div>
            </div>
        </div>

        
        <a href="../UnityClass/resources.html" class="navigation navigation-prev " aria-label="Previous page: Resources"><i class="fa fa-angle-left"></i></a>
        
        
        <a href="../UnityClass/translate.html" class="navigation navigation-next " aria-label="Next page: 移动"><i class="fa fa-angle-right"></i></a>
        
    </div>
</div>

        
<script src="../gitbook/app.js"></script>

    
    <script src="../gitbook/plugins/gitbook-plugin-maxiang/maxiang.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-comment/plugin.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-search/lunr.min.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-search/search.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-sharing/buttons.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-fontsettings/buttons.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-livereload/plugin.js"></script>
    

<script>
require(["gitbook"], function(gitbook) {
    var config = {"comment":{"highlightCommented":true},"highlight":{},"include-codeblock":{},"maxiang":{},"search":{"maxIndexSize":1000000},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"livereload":{}};
    gitbook.start(config);
});
</script>

        <!-- body:end -->
    </body>
    <!-- End of book Unity Source Book -->
</html>
