Table of Contents

Class RootMotionView

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

Inheritance
RootMotionView

Remarks

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.

See Also

Properties

animation_path

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

var animation_path : NodePath = NodePath("")

Property Value

NodePath

Remarks

cell_size

The grid's cell size in 3D units.

var cell_size : float = 1.0

Property Value

float

Remarks

  • void set_cell_size(float value)
  • float get_cell_size

color

The grid's color.

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

Property Value

Color

Remarks

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.

var radius : float = 10.0

Property Value

float

Remarks

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.

var zero_y : bool = true

Property Value

bool

Remarks

  • void set_zero_y(bool value)
  • bool get_zero_y