This page has been translated automatically.
视频教程
界面
要领
高级
实用建议
专业(SIM)
UnigineEditor
界面概述
资源工作流程
版本控制
设置和首选项
项目开发
调整节点参数
Setting Up Materials
设置属性
照明
Sandworm
使用编辑器工具执行特定任务
如何擴展編輯器功能
嵌入式节点类型
Nodes
Objects
Effects
Decals
光源
Geodetics
Sound Objects
Pathfinding Objects
Players
编程
基本原理
搭建开发环境
使用范例
C++
C#
UnigineScript
UUSL (Unified UNIGINE Shader Language)
Plugins
File Formats
材质和着色器
Rebuilding the Engine Tools
GUI
双精度坐标
应用程序接口
Animations-Related Classes
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Objects-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
IG Plugin
CIGIConnector Plugin
Rendering-Related Classes
VR-Related Classes
创建内容
内容优化
材质
Material Nodes Library
Miscellaneous
Input
Math
Matrix
Textures
Art Samples
Tutorials

Transform Path

Transform Path is a succession of transformations based on an arbitrary path. The objects that are made children of the Transform Path can move along with these transformations.Transform Path是基于任意路径的一系列转换。成为Transform Path子级的对象可以随这些转换一起移动。

See also也可以看看#

Adding Transform Path添加变换路径#

To add Transform Path to the scene via UnigineEditor, do the following:要通过UnigineEditor将Transform Path添加到场景中,请执行以下操作:

  1. Run the project with UnigineEditor.跑步UnigineEditor的项目。
  2. On the Menu bar, click Create -> Transform Path.在菜单栏上,单击Create -> Transform Path

  3. Choose the path to the .path file.选择.path文件的路径。

    注意
    The path can be changed afterwards in the World Transform Path section of the Parameters window.此后可以在Parameters窗口的World Transform Path部分中更改路径。
  4. Place the object somewhere in the world.将物体放置在世界上的某个地方。

Adding Objects Moving along the Path添加沿路径移动的对象#

To make objects move along the path, do the following:要使对象沿路径移动,请执行以下操作:

  1. Make the object a child of the path.使对象成为孩子的路径。
  2. Set the same initial positions for the object and the path.为对象和路径设置相同的初始位置。

    注意
    If the object coordinates differ from the path coordinates, the object will have the corresponding offset relative to the path.如果对象坐标与路径坐标不同,则对象将具有相对于路径的相应偏移。
  3. To put the object in motion, click Play on the Node tab.要使对象运动,请在Node选项卡上单击Play
  4. Adjust the playback parameters.调整播放参数

Parameters参数#

In the Node tab of the Parameters window, you can adjust the following parameters of Transform Path:Parameters窗口的Node选项卡中,可以调整Transform Path的以下参数:

Path Sets a path to the new .path file.设置新.path文件的路径。
Orientation Indicates whether the object should be oriented along the path or keep its initial position.指示对象应沿路径定向还是保持其初始位置。

Playback Parameters播放参数#

Transform Path has the following playback parameters:Transform Path具有以下播放参数:

Loop Loops the transformation defined by the path.循环路径定义的转换。
Update Distance Limit Sets the distance from the camera within which the object should be updated.设置与相机之间应更新对象的距离。
Time

Sets the time, from which the playback of the transformation defined by the path starts.设置开始播放路径定义的转换的时间。

注意
If the object is oriented along the path, its transformation corresponds to the path transformation at the specified time. Otherwise, only the object position is changed.如果对象是定向的沿着路径,其变换对应于指定时间的路径变换。否则,仅更改对象位置。
Speed

Sets the speed of the transformation playback.设置转换播放的速度。

注意
Negative values provide the reverse playback.负值提供反向播放。
Play Continues playback of the transformation defined by the path if it has been paused, or starts the playback, if it has been stopped.如果已暂停,则继续播放路径定义的转换,如果已停止,则开始播放。
Stop Stops the playback of the transformation defined by the path. This function saves the playback position so that playing of the transformation defined by the path can be resumed from the same point.停止播放路径定义的转换。此功能保存播放位置,以便可以从同一点继续播放路径定义的转换。
最新更新: 2021-05-26
Build: ()