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

繼承: VisualInstance3D < Node3D < Node < Object

AnimationTree 中設定根運動的僅編輯器可用的輔助工具。

說明

根運動(Root Motion)是一種動畫技術,通過使用網格的骨架為角色提供沖量。在處理 3D 動畫時,動畫師通常使用根骨骼來為其餘的骨骼提供動作,從而使得角色的動畫能夠準確地配對地面,並實作在電影中與物體的精確互動。另請參閱 AnimationTree

注意:RootMotionView 僅在編輯器中可見。在運作的專案中將自動隱藏。

教學

屬性

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


屬性說明

NodePath animation_path = NodePath("") 🔗

用作根運動的基的 AnimationTree 節點的路徑。


float cell_size = 1.0 🔗

  • void set_cell_size(value: float)

  • float get_cell_size()

以 3D 單位表示的網格單元大小。


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

網格的顏色。


float radius = 10.0 🔗

  • void set_radius(value: float)

  • float get_radius()

以 3D 單位表示的網格半徑。隨著與原點的距離增加,網格的不透明度將逐漸消失,直到達到此半徑 radius


bool zero_y = true 🔗

  • void set_zero_y(value: bool)

  • bool get_zero_y()

如果為 true,則網格的點都將位於相同的 Y 座標上(local Y = 0)。如果 false,則保留點的原始 Y 座標。