Attention: Here be dragons

This is the latest (unstable) version of this documentation, which may document features not available in or compatible with released stable versions of Godot.

RootMotionView

Inherits: VisualInstance3D < Node3D < Node < Object

AnimationTree 中设置根运动的仅编辑器可用的辅助工具。

Description

根运动(Root Motion)是一种动画技术,通过使用网格的骨架为角色提供冲量。在处理 3D 动画时,动画师通常使用根骨骼来为其余的骨骼提供动作,从而使得角色的动画能够准确地匹配地面,并实现在电影中与物体的精确交互。另请参阅 AnimationTree

注意:RootMotionView 仅在编辑器中可见。在运行的项目中将自动隐藏。

Tutorials

Properties

NodePath

animation_path

NodePath("")

float

cell_size

1.0

Color

color

Color(0.5, 0.5, 1, 1)

float

radius

10.0

bool

zero_y

true


Property Descriptions

NodePath animation_path = NodePath("")

用作根运动的基的 AnimationTree 节点的路径。


float cell_size = 1.0

  • void set_cell_size ( float value )

  • float get_cell_size ( )

以 3D 单位表示的网格单元大小。


Color color = Color(0.5, 0.5, 1, 1)

  • void set_color ( Color value )

  • Color get_color ( )

网格的颜色。


float radius = 10.0

  • void set_radius ( float value )

  • float get_radius ( )

以 3D 单位表示的网格半径。随着与原点的距离增加,网格的不透明度将逐渐消失,直到达到此半径 radius


bool zero_y = true

  • void set_zero_y ( bool value )

  • bool get_zero_y ( )

如果为 true,则网格的点都将位于相同的 Y 坐标上(local Y = 0)。如果 false,则保留点的原始 Y 坐标。