RootMotionView

继承: VisualInstance3D < Node3D < Node < Object

Editor-only helper for setting up root motion in AnimationMixer.

描述

Root motion refers to an animation technique where a mesh's skeleton is used to give impulse to a character. When working with 3D animations, a popular technique is for animators to use the root skeleton bone to give motion to the rest of the skeleton. This allows animating characters in a way where steps actually match the floor below. It also allows precise interaction with objects during cinematics. See also AnimationMixer.

Note: RootMotionView is only visible in the editor. It will be hidden automatically in the running project.

属性


属性说明

NodePath animation_path = NodePath("")

Path to an AnimationMixer node to use as a basis for root motion.


float cell_size = 1.0

  • void set_cell_size ( value: float )
  • float get_cell_size ( )

The grid's cell size in 3D units.


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

  • void set_color ( value: Color )
  • Color get_color ( )

The grid's color.


float radius = 10.0

  • void set_radius ( value: float )
  • float get_radius ( )

The grid's radius in 3D units. The grid's opacity will fade gradually as the distance from the origin increases until this radius is reached.


bool zero_y = true

  • void set_zero_y ( value: bool )
  • bool get_zero_y ( )

If true, the grid's points will all be on the same Y coordinate (local Y = 0). If false, the points' original Y coordinate is preserved.

1

本方法通常需要用户覆盖才能生效。

2

本方法无副作用,不会修改该实例的任何成员变量。

3

本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。

4

本方法用于构造某个类型。

5

调用本方法无需实例,可直接使用类名进行调用。

6

本方法描述的是使用本类型作为左操作数的有效运算符。

7

这个值是由下列位标志构成位掩码的整数。

8

无返回值。